Skip to content

Commit 7d1ede1

Browse files
committed
Merge pull request #396 from tocker/bug/changelog-catch-head
Catch "HEAD -> master" when creating the changelog
2 parents 8652172 + 7ddd1f7 commit 7d1ede1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/git-changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ commitList() {
221221
# git v2.2.0+ supports '%D', like '%d' without the " (", ")" wrapping. One day we should use it instead.
222222
_tag="${_tag# }"; _tag="${_tag//[()]/}"
223223
# trap tag if it points to last commit (HEAD)
224-
_tag="${_tag##HEAD, }"
224+
_tag="${_tag#HEAD*, }"
225225
# strip out any additional tags pointing to same commit, remove tag label
226226
_tag="${_tag%%,*}"; _tag="${_tag#tag: }"
227227
# strip out tags that are actually feature branches (git-flow support)

0 commit comments

Comments
 (0)