Skip to content

Commit 21a1f1b

Browse files
committed
fix(gitutils): 🐛 improve release finish error handling and instructions
1 parent 166fcde commit 21a1f1b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/gitutils/_git-release-prod.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,15 @@ if bump-changelog -f $GBV -b -m; then
9595

9696
if git flow $flow finish $name --push --tagname $GBV --message $GBV ; then
9797
zz_log s "Release finished: {B $GBV}"
98-
rm -f .git/RELEASE
99-
100-
# Create git tag for the new version
10198
bump-tag $GBV
10299
else
103-
git undo && git pf
104100
zz_log e "Cannot finish release. CHANGELOG & VERSION are not updated."
101+
zz_log - "Please fix the issues, commit the changes, and finish the release manually with:"
102+
zz_log - " git flow $flow finish $name --push --tagname $GBV --message $GBV"
103+
zz_log - " bump-tag $GBV"
105104
fi
105+
106+
rm -f .git/RELEASE
106107
else
107108
zz_log e "Cannot update version & finish release"
108109
fi

0 commit comments

Comments
 (0)