Skip to content

Commit

Permalink
Use different method to detect if we are on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
griff committed Sep 22, 2017
1 parent 090fe21 commit e2f027d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/plist.bash
Expand Up @@ -33,7 +33,7 @@ if git show-ref --tags --quiet --verify -- "refs/tags/v$release"; then
elif git show-ref --tags --quiet --verify -- "refs/tags/$release"; then
TAG="$release"
fi
if [ -n "$TAG" -a "$TAG" != "$(git describe --exact-match --tags HEAD 2> /dev/null)" ]; then
if [ -n "$TAG" -a "$TAG" != "$(git tag --points-at HEAD | grep -e "^${TAG}$" 2> /dev/null)" ]; then
echo "Tag $TAG exists and HEAD is not on it so we can't build version $release"
exit 1
fi
Expand Down

0 comments on commit e2f027d

Please sign in to comment.