aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-05-28 13:33:43 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-06-23 16:25:23 +0200
commit895ee3b3b1f199dae2ed4da9c393d1ba575820a0 (patch)
tree58a9ebfb9abcb11178b3cd9f1ed938d24edc67aa
parent701471e8e464558a05ff99eeeeb7b886c1a7cefa (diff)
downloadnx-libs-895ee3b3b1f199dae2ed4da9c393d1ba575820a0.tar.gz
nx-libs-895ee3b3b1f199dae2ed4da9c393d1ba575820a0.tar.bz2
nx-libs-895ee3b3b1f199dae2ed4da9c393d1ba575820a0.zip
debian/roll-tarball.sh: Support tarring up the HEAD of the current branch.
-rwxr-xr-xdebian/roll-tarballs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/roll-tarballs.sh b/debian/roll-tarballs.sh
index a060212f0..ff777bd37 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