From 7ddd1f7a605fbbf1c93b71d095591017c6e45389 Mon Sep 17 00:00:00 2001 From: Amir Tocker Date: Mon, 20 Jul 2015 09:15:08 +0300 Subject: [PATCH] Catch "HEAD -> master" when creating the changelog git log may report `(HEAD -> master, tag:...)` instead of `(HEAD, tag:...)`. --- bin/git-changelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-changelog b/bin/git-changelog index aff380c..d2f8749 100755 --- a/bin/git-changelog +++ b/bin/git-changelog @@ -221,7 +221,7 @@ commitList() { # git v2.2.0+ supports '%D', like '%d' without the " (", ")" wrapping. One day we should use it instead. _tag="${_tag# }"; _tag="${_tag//[()]/}" # trap tag if it points to last commit (HEAD) - _tag="${_tag##HEAD, }" + _tag="${_tag#HEAD*, }" # strip out any additional tags pointing to same commit, remove tag label _tag="${_tag%%,*}"; _tag="${_tag#tag: }" # strip out tags that are actually feature branches (git-flow support)