aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwatch-git-tags3
1 files changed, 1 insertions, 2 deletions
diff --git a/watch-git-tags b/watch-git-tags
index 8ccc884..f73994a 100755
--- a/watch-git-tags
+++ b/watch-git-tags
@@ -11,8 +11,7 @@ lt() {
rt() {
{ git ls-remote --quiet --refs --tags ||
printf >&2 'Failed to retrieve tags for repository %s\n' "$PWD"
- } | awk '!/\^\{\}$/{print substr($2,11)}' |
- LC_COLLATE=C sort
+ } | cut -d/ -f3 | LC_COLLATE=C sort
}
# Create a temporary directory with name in $td, and handle POSIX-ish traps to