Skip to content

Commit

Permalink
build/release: update release script to handle multiple tags at head
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Roasbeef authored and matheusd committed Feb 25, 2020
1 parent 3a4ce26 commit f0455ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0455ec

Please sign in to comment.