Fix: respect the VERSION_PREFIX in hotfix releases, too.
diff --git a/git-flow-hotfix b/git-flow-hotfix
index e4ada19..ef3fac3 100644
--- a/git-flow-hotfix
+++ b/git-flow-hotfix
@@ -12,6 +12,7 @@
# Copyright (c) 2010 by Benedikt Böhm
#
+VERSION_PREFIX=$(git config --get gitflow.prefix.versiontag)
PREFIX=$(git config --get gitflow.prefix.hotfix || echo hotfix/)
usage() {
@@ -98,7 +99,7 @@
# merge into BASE
git checkout $BASE
git merge --no-ff $BRANCH
- git tag v$VERSION
+ git tag $VERSION_PREFIX$VERSION
# merge into develop if we fixed a master issue
# TODO: merge into support branch
@@ -117,7 +118,7 @@
echo "Summary of actions:"
echo "- Latest objects have been fetched from '$ORIGIN'"
echo "- Hotfix branch has been merged into '$BASE'"
- echo "- The hotfix was tagged 'v$VERSION'"
+ echo "- The hotfix was tagged '$VERSION_PREFIX$VERSION'"
if [ "$BASE" = "$MASTER_BRANCH" ]; then
echo "- Hotfix branch has been back-merged into '$DEVELOP_BRANCH'"
fi