2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

[master] make sure both tags and branches work with kit.sh

This commit is contained in:
Evan Hunt
2013-09-09 10:34:48 -07:00
parent d899311194
commit ab571c1f5b

View File

@@ -124,6 +124,13 @@ mkdir $topdir || exit 1
git archive --format=tar $remote $tag | ( cd $topdir; tar xf -)
shorthash=`git ls-remote $repo refs/heads/$tag | cut -c1-8`
if [ -z "$shorthash" ]; then
shorthash=`git ls-remote $repo refs/tags/$tag | cut -c1-8`
fi
if [ -z "$shorthash" ]; then
echo "Unable to determine hash for $tag, aborting."
exit 1
fi
cd $topdir || exit 1