Skip to content

Commit

Permalink
Fix anotated tag without message
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscoms authored and petervanderdoes committed May 23, 2019
1 parent 1617791 commit 40fc2df
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions git-flow-release
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ _finish_from_develop() {
opts="$opts -m '$FLAGS_message'"
fi
[ "$FLAGS_messagefile" != "" ] && opts="$opts -F '$FLAGS_messagefile'"
if noflag edit; then
if [ "$FLAGS_message" = "" ] && [ "$FLAGS_messagefile" = "" ]; then
# in order to fix annotated tag without message
opts="$opts -m $VERSION_PREFIX$TAGNAME"
fi
fi
eval git_do tag $opts "$VERSION_PREFIX$TAGNAME" || die "Tagging failed. Please run finish again to retry."
fi
fi
Expand Down Expand Up @@ -330,6 +336,12 @@ _finish_base() {
opts="$opts -m '$FLAGS_message'"
fi
[ "$FLAGS_messagefile" != "" ] && opts="$opts -F '$FLAGS_messagefile'"
if noflag edit; then
if [ "$FLAGS_message" = "" ] && [ "$FLAGS_messagefile" = "" ]; then
# in order to fix annotated tag without message
opts="$opts -m $VERSION_PREFIX$TAGNAME"
fi
fi
eval git_do tag $opts "$VERSION_PREFIX$TAGNAME" || die "Tagging failed. Please run finish again to retry."
fi
fi
Expand Down

0 comments on commit 40fc2df

Please sign in to comment.