mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
Fix git tag substring extraction for bash 3.2.
This commit is contained in:
parent
e16e90e9b9
commit
399bc037fa
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue