[Pkg-ocaml-maint-commits] [dh-ocaml] 01/01: Added option to set alioth username in dom-git-new-repo
Riley Baird
orthogonal-guest at moszumanska.debian.org
Wed Jun 24 08:31:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
orthogonal-guest pushed a commit to branch master
in repository dh-ocaml.
commit 1e1cafe03d721d165bdc5a2beec7e2983e295577
Author: Riley Baird <BM-2cVqnDuYbAU5do2DfJTrN7ZbAJ246S4XiX at bitmessage.ch>
Date: Wed Jun 24 18:31:15 2015 +1000
Added option to set alioth username in dom-git-new-repo
---
manpages/dom-new-git-repo.xml | 11 +++++++++++
tools/dom-new-git-repo | 19 ++++++++++++++++---
2 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/manpages/dom-new-git-repo.xml b/manpages/dom-new-git-repo.xml
index adee7f7..dd04193 100644
--- a/manpages/dom-new-git-repo.xml
+++ b/manpages/dom-new-git-repo.xml
@@ -81,6 +81,17 @@
</refsect1>
+ <refsect1>
+ <title>ENVIRONMENT</title>
+
+ <variablelist>
+ <varlistentry>
+ <term><envar>DOM_ALIOTH_USER</envar></term>
+ <listitem><para>Alioth username</para></listitem>
+ </varlistentry>
+ </variablelist>
+
+ </refsect1>
<refsect1>
<title>SEE ALSO</title>
diff --git a/tools/dom-new-git-repo b/tools/dom-new-git-repo
index 442f514..8858b2c 100755
--- a/tools/dom-new-git-repo
+++ b/tools/dom-new-git-repo
@@ -16,7 +16,12 @@ else
INJECT_TARBALL="yes"
fi
-ALIOTH="git.debian.org"
+if [ -n "$DOM_ALIOTH_USER" ]; then
+ ALIOTH="${DOM_ALIOTH_USER}@git.debian.org"
+else
+ ALIOTH="git.debian.org"
+fi
+
REPODIR="/git/pkg-ocaml-maint/packages/$PACKAGE.git"
@@ -56,7 +61,11 @@ EOCMD
git_push () {
echo "I: pushing first changes to alioth.d.o"
- git remote add origin "git+ssh://git.debian.org/$REPODIR"
+ if [ -n "$DOM_ALIOTH_USER" ]; then
+ git remote add origin "git+ssh://${DOM_ALIOTH_USER}@git.debian.org/$REPODIR"
+ else
+ git remote add origin "git+ssh://git.debian.org/$REPODIR"
+ fi
git push --all
git push --tags
}
@@ -93,7 +102,11 @@ fi
echo "I: all done. You can now checkout your new git repo with:"
echo
-echo " git clone git+ssh://git.debian.org/$REPODIR"
+if [ -n "$DOM_ALIOTH_USER" ]; then
+ echo " git clone git+ssh://${DOM_ALIOTH_USER}@git.debian.org/$REPODIR"
+else
+ echo " git clone git+ssh://git.debian.org/$REPODIR"
+fi
echo
echo "I: or, for extra goodies (recommended):"
echo
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/dh-ocaml.git
More information about the Pkg-ocaml-maint-commits
mailing list