[X2Go-Commits] [nx-libs] 26/53: debian/roll-tarball.sh: Support tarring up the HEAD of the current branch.

git-admin at x2go.org git-admin at x2go.org
Tue Sep 22 15:10:42 CEST 2015


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

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit 895ee3b3b1f199dae2ed4da9c393d1ba575820a0
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Thu May 28 13:33:43 2015 +0200

    debian/roll-tarball.sh: Support tarring up the HEAD of the current branch.
---
 debian/roll-tarballs.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/roll-tarballs.sh b/debian/roll-tarballs.sh
index a060212..ff777bd 100755
--- a/debian/roll-tarballs.sh
+++ b/debian/roll-tarballs.sh
@@ -52,13 +52,13 @@ else
 fi
 
 if [ x"$RELEASE" == "xHEAD" ]; then
-    CHECKOUT="HEAD"
+    CHECKOUT=refs/heads/$(git rev-parse --abbrev-ref HEAD)
 fi
 
 if ! git rev-parse --verify -q "$CHECKOUT" >/dev/null; then
     echo "   '${RELEASE}' is not a valid release number because there is no git tag named ${CHECKOUT}."
     echo "   Please specify one of the following releases:"
-    echo "HEAD"
+    echo "HEAD (on branch `git rev-parse --abbrev-ref HEAD`)"
     git tag -l | grep "^redist" | cut -f2 -d"/" | sort -u
     exit 1
 fi

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


More information about the x2go-commits mailing list