[X2Go-Commits] [maintenancescripts] 03/06: git/hooks/x2go-post-receive-tag-pending: use common.sh.

git-admin at x2go.org git-admin at x2go.org
Mon Feb 23 21:55: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 8e1db5610fde0067fba136a87ca0ff4efc94520b
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Feb 23 21:52:47 2015 +0100

    git/hooks/x2go-post-receive-tag-pending: use common.sh.
---
 git/hooks/x2go-post-receive-tag-pending |   16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/git/hooks/x2go-post-receive-tag-pending b/git/hooks/x2go-post-receive-tag-pending
index 232fac1..138815e 100755
--- a/git/hooks/x2go-post-receive-tag-pending
+++ b/git/hooks/x2go-post-receive-tag-pending
@@ -16,22 +16,14 @@
 # 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"
-}
-
-
-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