[X2Go-Commits] [maintenancescripts] 08/10: git/hooks/x2go-post-receive-close-bugs: use common.sh.

git-admin at x2go.org git-admin at x2go.org
Mon Feb 23 21:34:42 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 8993cca33a0a52fa04f53d2f85226fe205c1c095
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Feb 23 21:29:00 2015 +0100

    git/hooks/x2go-post-receive-close-bugs: use common.sh.
---
 git/hooks/x2go-post-receive-close-bugs |   15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/git/hooks/x2go-post-receive-close-bugs b/git/hooks/x2go-post-receive-close-bugs
index b666a49..4ff4478 100755
--- a/git/hooks/x2go-post-receive-close-bugs
+++ b/git/hooks/x2go-post-receive-close-bugs
@@ -16,21 +16,16 @@
 # post-receive's stdin, you can use pee(1), from the moreutils package.
 # No configuration is necessary.
 
+. hooks/common.sh
+
 set -e
 set -u
 
-verbose=true
-
-function info {
-  $verbose && echo >&2 "-Info-          $1"
-}
+verbose="1"
 
-REPODIR=`readlink -f "$PWD"`
-REPOREL=${REPODIR#/srv/git/code.x2go.org/}
-BASEURL="http://code.x2go.org/gitweb?p=$REPOREL"
+BASEURL="http://code.x2go.org/gitweb?p=${GIT_REPO_NAME}"
 
-PROJECT=${REPOREL//.git/}
-PROJECT=$(basename $PROJECT)
+PROJECT="${GIT_REPO_NAME//.git/}"
 
 tempdir=`mktemp -d`
 trap "rm -rf \"${tempdir}\"" EXIT

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


More information about the x2go-commits mailing list