diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-05-28 13:30:34 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-05-28 14:18:36 +0200 |
commit | 2e5b45ada723c56e09c7e4377e98b48ff2f2b3ec (patch) | |
tree | 2226f93305209d294cb3de39bd2a2905ebf708b0 /debian/roll-tarballs.sh | |
parent | 23fc7ee7e26068283cea71a6816fca2a4faf9829 (diff) | |
download | nx-libs-2e5b45ada723c56e09c7e4377e98b48ff2f2b3ec.tar.gz nx-libs-2e5b45ada723c56e09c7e4377e98b48ff2f2b3ec.tar.bz2 nx-libs-2e5b45ada723c56e09c7e4377e98b48ff2f2b3ec.zip |
Support tarring up the HEAD of the current branch.
Diffstat (limited to 'debian/roll-tarballs.sh')
-rwxr-xr-x | debian/roll-tarballs.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/roll-tarballs.sh b/debian/roll-tarballs.sh index 47b2b6b3e..36afd8203 100755 --- a/debian/roll-tarballs.sh +++ b/debian/roll-tarballs.sh @@ -53,13 +53,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 |