Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Commit 40fc2df

Browse files
luiscomspetervanderdoes
authored andcommitted
Fix anotated tag without message
1 parent 1617791 commit 40fc2df

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

git-flow-release

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ _finish_from_develop() {
134134
opts="$opts -m '$FLAGS_message'"
135135
fi
136136
[ "$FLAGS_messagefile" != "" ] && opts="$opts -F '$FLAGS_messagefile'"
137+
if noflag edit; then
138+
if [ "$FLAGS_message" = "" ] && [ "$FLAGS_messagefile" = "" ]; then
139+
# in order to fix annotated tag without message
140+
opts="$opts -m $VERSION_PREFIX$TAGNAME"
141+
fi
142+
fi
137143
eval git_do tag $opts "$VERSION_PREFIX$TAGNAME" || die "Tagging failed. Please run finish again to retry."
138144
fi
139145
fi
@@ -330,6 +336,12 @@ _finish_base() {
330336
opts="$opts -m '$FLAGS_message'"
331337
fi
332338
[ "$FLAGS_messagefile" != "" ] && opts="$opts -F '$FLAGS_messagefile'"
339+
if noflag edit; then
340+
if [ "$FLAGS_message" = "" ] && [ "$FLAGS_messagefile" = "" ]; then
341+
# in order to fix annotated tag without message
342+
opts="$opts -m $VERSION_PREFIX$TAGNAME"
343+
fi
344+
fi
333345
eval git_do tag $opts "$VERSION_PREFIX$TAGNAME" || die "Tagging failed. Please run finish again to retry."
334346
fi
335347
fi

0 commit comments

Comments
 (0)