From 3fd4791273f552bdbf9e0c9956e022a902aae1a6 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Tue, 25 Apr 2023 17:19:18 +0200 Subject: [PATCH] Make bump-tag branch agnostic --- bump-tag | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bump-tag b/bump-tag index 440809b..4516f38 100755 --- a/bump-tag +++ b/bump-tag @@ -24,7 +24,8 @@ git tag -v $last_tag > /dev/null 2>&1 echo "" echo "Differences between tag $last_tag and what you are about to sign:" -PAGER=cat git diff --color $last_tag..master +this_branch=$(git rev-parse --abbrev-ref HEAD) +PAGER=cat git diff --color $last_tag..$this_branch iter=1 ok=