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-2cvqnduybau5do2dfjtrn7zbaj246s4...@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 _______________________________________________ Pkg-ocaml-maint-commits mailing list Pkg-ocaml-maint-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits