diff options
Diffstat (limited to 'git-which-tag.sh')
-rwxr-xr-x | git-which-tag.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-which-tag.sh b/git-which-tag.sh index b2665f5..b5d7390 100755 --- a/git-which-tag.sh +++ b/git-which-tag.sh @@ -5,7 +5,7 @@ set -eu git log --color=never --all --pretty='%h' --grep="${1}" | while read -r ID ; do tags="$(git tag --no-column -l 'v*' --sort='version:refname' --contains "$ID" \ - | head -n 5)" + | head -n 5 | tr '\n' ' ')" if [ -n "$tags" ] ; then printf "%s: %s\n" "$ID" "$tags" fi |