commit a5704b7e7cd13cc3fc2d0397b67f32e1b7057359
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Thu Aug 25 15:44:49 2016 +0200
Avoid using namespace in setup_git_package
roles/distgit/files/setup_git_package | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/roles/distgit/files/setup_git_package
b/roles/distgit/files/setup_git_package
index 7a83b56..872a9a6 100755
--- a/roles/distgit/files/setup_git_package
+++ b/roles/distgit/files/setup_git_package
@@ -94,10 +94,10 @@ TMPDIR=$(mktemp -d /tmp/tmpXXXXXX)
mkdir -p $GITROOT/$PACKAGE.git
pushd $GITROOT/$PACKAGE.git >/dev/null
git init -q --shared --bare
-echo "$PACKAGE" > description # This is used to figure out who to send mail
to.
-git config --add hooks.mailinglist
"$PACKAGE-owner@rpmfusion.org,rpmfusion-commits(a)lists.rpmfusion.org"
+echo "${PACKAGE#*/}" > description # This is used to figure out who to send
mail to.
+git config --add hooks.mailinglist
"${PACKAGE#*/}-owner@rpmfusion.org,rpmfusion-commits(a)lists.rpmfusion.org"
git config --add hooks.maildomain
rpmfusion.org
-git remote add github git@github.com:rpmfusion/${PACKAGE}.git
+git remote add github git@github.com:rpmfusion/${PACKAGE#*/}.git
popd >/dev/null
# Now clone that repo and create the .gitignore and sources file