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 committed Jan 22, 2020
1 parent a2977c4 commit 8b086bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/release/release.sh
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 8b086bb

Please sign in to comment.