From 399bc037fa42f795c2b99f2990cd03abbf0a9665 Mon Sep 17 00:00:00 2001 From: Mark Eissler Date: Sat, 25 Apr 2015 10:08:11 -0700 Subject: [PATCH] Fix git tag substring extraction for bash 3.2. --- bin/git-changelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-changelog b/bin/git-changelog index 6d60b04..19445ca 100755 --- a/bin/git-changelog +++ b/bin/git-changelog @@ -219,7 +219,7 @@ commitList() { [[ -z "${_tag}" ]] && continue # strip out tags form () # git v2.2.0+ supports '%D', like '%d' without the " (", ")" wrapping. One day we should use it instead. - _tag="${_tag:2:-1}" + _tag="${_tag# }"; _tag="${_tag//[()]/}" # trap tag if it points to last commit (HEAD) _tag="${_tag##HEAD, }" # strip out any additional tags pointing to same commit, remove tag label