aboutsummaryrefslogtreecommitdiffstats
path: root/git-which-tag.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-which-tag.sh')
-rwxr-xr-xgit-which-tag.sh2
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