build/release: update release script to handle multiple tags at head

In this commit, we change the release script slightly to return the
latest tag if there're multiple tags at head. Otherwise the release
script will fail if our final tag is at the same commit as the prior
release candidate tag.
This commit is contained in:
Olaoluwa Osuntokun 2020-01-21 20:46:40 -08:00
parent a2977c4438
commit 8b086bb581
No known key found for this signature in database
GPG Key ID: BC13F65E2DC84465

View File

@ -18,7 +18,7 @@ else
TAG=$1
# If a tag is specified, ensure that that tag is present and checked out.
if [[ $TAG != $(git tag -l --points-at HEAD) ]]; then
if [[ $TAG != $(git describe) ]]; then
echo "tag $TAG not checked out"
exit 1
fi