From a347e491786b32c947ebd41ae065477b93a7375c Mon Sep 17 00:00:00 2001 From: spacewander Date: Wed, 8 Aug 2018 13:34:11 +0800 Subject: [PATCH] git-changelog: should remove ^0 suffix from the commit description. --- bin/git-changelog | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/git-changelog b/bin/git-changelog index 6a39865..895e8c4 100755 --- a/bin/git-changelog +++ b/bin/git-changelog @@ -496,6 +496,8 @@ main() { # remove suffix from the $start_tag when no tag matched exactly start_tag="${start_tag%%~*}" + # also remove "^0" added sometimes when tag matched exactly + start_tag="${start_tag%%^0}" elif [[ -n "${_tag}" ]]; then start_tag="$(git describe --tags --abbrev=0 "${_tag}" 2>/dev/null)"