File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments