diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-30 10:27:29 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-30 10:27:29 +1300 |
commit | 12afe9f8378c48b9c9e4255ad40ac8a39262db87 (patch) | |
tree | b43586caedafe4c922cce94ecad296f4faeaa167 | |
parent | Exclude peeled tags and pseudorefs (diff) | |
download | watch-vcs-tags-12afe9f8378c48b9c9e4255ad40ac8a39262db87.tar.gz watch-vcs-tags-12afe9f8378c48b9c9e4255ad40ac8a39262db87.zip |
Simplify git-ls-remote output filtering
-rwxr-xr-x | watch-git-tags | 3 |
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 |