Attempting to build the lastest tag instead of a hard-coded one

This commit is contained in:
anon8675309 2021-06-19 15:01:17 -05:00 committed by Isaac Connor
parent 6e32de6a91
commit 022e9ad014
1 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,9 @@ else
fi;
if [ "$SNAPSHOT" == "stable" ]; then
if [ "$BRANCH" == "" ]; then
#REV=$(git rev-list --tags --max-count=1)
echo "About to get the hash of the most recent tag"
REV=$(git rev-list --tags --max-count=1)
echo "REV = $REV"
BRANCH=`git describe --tags $(git rev-list --tags --max-count=1)`;
if [ -z "$BRANCH" ]; then
# This should only happen in CI environments where tag info isn't available