Skip to content

Commit

Permalink
Delete tag if already exist locally
Browse files Browse the repository at this point in the history
  • Loading branch information
normanmaurer authored and 夏无影 committed Jul 8, 2022
1 parent ac3fe54 commit 738c136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/finish_release.sh
Expand Up @@ -16,8 +16,8 @@ fi
BRANCH=$(git branch --show-current)

if git tag | grep -q "$2" ; then
echo "Tag $2 already exists"
exit 1
echo "Tag $2 already existed locally, deleting it"
git tag -d "$2"
fi

git fetch
Expand Down

0 comments on commit 738c136

Please sign in to comment.