Skip to content

Commit 0f1a877

Browse files
committed
release-version --tag: exit early on existing tag
It can be really, really annoying when the quite long process of testing and retesting a release candidate is done, successfully, only so that release-version.sh can complain about an existing tag. So let's not do that. (Fail early, fail often!) Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b2c0801 commit 0f1a877

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

release-version.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ do
3434
--skip-push) SKIP_PUSH=t;;
3535
--skip-deploy) SKIP_DEPLOY=t;;
3636
--tag=*)
37+
! git rev-parse --quiet --verify refs/tags/"${1#--*=}" ||
38+
die "Tag ${1#--*=} exists already!"
3739
TAG="-Dtag=${1#--*=}";;
3840
--dev-version=*|--development-version=*)
3941
DEV_VERSION="-DdevelopmentVersion=${1#--*=}";;

0 commit comments

Comments
 (0)