[X2Go-Commits] [maintenancescripts] 02/03: git/hooks/post-receive: use common.sh and the variables defined there.

git-admin at x2go.org git-admin at x2go.org
Mon Feb 23 20:42:28 CET 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository maintenancescripts.

commit 2c86d6fae16aee26d3dcdedb5b7f77651a3b8577
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Feb 23 20:37:04 2015 +0100

    git/hooks/post-receive: use common.sh and the variables defined there.
---
 git/hooks/post-receive |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/git/hooks/post-receive b/git/hooks/post-receive
index 673abcd..49241b7 100755
--- a/git/hooks/post-receive
+++ b/git/hooks/post-receive
@@ -12,10 +12,12 @@
 # see contrib/hooks/ for a sample, or uncomment the next line and
 # rename the file to "post-receive".
 
-GIT_REPO_URL=git://code.x2go.org/`pwd | sed 's:.*\/::'`
-curl http://jenkins.x2go.org:8080/git/notifyCommit?url=$GIT_REPO_URL
+. hooks/common.sh
+
+GIT_REPO_URL="git://code.x2go.org/${GIT_REPO_NAME}"
+curl "http://jenkins.x2go.org:8080/git/notifyCommit?url=${GIT_REPO_URL}"
 
 exec /usr/bin/pee \
-        "/srv/git/_hooks_/x2go-post-receive-tag-pending" \
-        "/srv/git/_hooks_/x2go-post-receive-close-bugs" \
-        "/srv/git/_hooks_/post-receive-email"
+        "${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/x2go-post-receive-tag-pending" \
+        "${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/x2go-post-receive-close-bugs" \
+        "${GIT_DIR}/${OUTSIDE_REPO}/_hooks_/post-receive-email"

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git


More information about the x2go-commits mailing list