diff --git a/git-flow-hotfix b/git-flow-hotfix index 514a5099..f4325234 100644 --- a/git-flow-hotfix +++ b/git-flow-hotfix @@ -532,6 +532,7 @@ T,tagname! Use given tag name # In case a previous attempt to finish this release branch has failed, # but the tag was set successful, we skip it now if ! git_tag_exists "$VERSION_PREFIX$TAGNAME"; then + git_do checkout "$MASTER_BRANCH" || die "Could not check out branch '$MASTER_BRANCH'." if [ "$FLAGS_message" != "" ] && [ "$FLAGS_messagefile" != "" ]; then die "Use either -m,--message or -f,--messagefile. Can not use both options at the same time" fi