[pkg-perl-tools] 01/02: Always setup the repository on alioth if it doesn't exist yet
Axel Beckert
abe at deuxchevaux.org
Tue Jul 21 21:49:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository pkg-perl-tools.
commit 04c7426688c0b19cdc24e22c1ff9381a31aa67eb
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Tue Jul 21 23:44:55 2015 +0200
Always setup the repository on alioth if it doesn't exist yet
Even if a remote named origin already existed and pointed to the
correct repository.
---
scripts/alioth-repo | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/scripts/alioth-repo b/scripts/alioth-repo
index 8d7045c..76683a7 100755
--- a/scripts/alioth-repo
+++ b/scripts/alioth-repo
@@ -47,6 +47,13 @@ if [ -z "$DIST" ]; then
exit 1
fi
+# Setup the repository on alioth if it doesn't exist yet.
+if ssh git.debian.org test -e "/git/pkg-perl/packages/$PKG.git"; then
+ echo "/git/pkg-perl/packages/$PKG.git already exists on git.debian.org, skipping setup-repository" 1>&2
+else
+ ssh git.debian.org /git/pkg-perl/setup-repository $PKG \"Debian packaging of $DIST CPAN distribution\"
+fi
+
# Check if there is already a remote called "origin" before proceeding
if git remote | egrep -q '^origin$'; then
if git remote -v | egrep "^origin[[:space:]].*git\.debian.org.*/git/pkg-perl/packages/$PKG\.git\b.*\(push\)$"; then
@@ -58,7 +65,6 @@ if git remote | egrep -q '^origin$'; then
exit 1;
fi
else
- ssh git.debian.org /git/pkg-perl/setup-repository $PKG \"Debian packaging of $DIST CPAN distribution\"
git remote add origin ssh://git.debian.org/git/pkg-perl/packages/$PKG.git || [ $? = 128 ]
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git
More information about the Pkg-perl-cvs-commits
mailing list