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 committed May 19, 2021
1 parent 037eddd commit 8be7c5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/finish_release.sh
Original file line number Diff line number Diff line change
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 8be7c5b

Please sign in to comment.