aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-30 10:27:29 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-30 10:27:29 +1300
commit12afe9f8378c48b9c9e4255ad40ac8a39262db87 (patch)
treeb43586caedafe4c922cce94ecad296f4faeaa167
parentExclude peeled tags and pseudorefs (diff)
downloadwatch-vcs-tags-12afe9f8378c48b9c9e4255ad40ac8a39262db87.tar.gz
watch-vcs-tags-12afe9f8378c48b9c9e4255ad40ac8a39262db87.zip
Simplify git-ls-remote output filtering
-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