diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-21 11:43:07 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-21 11:43:07 +1200 |
commit | fd7f2b02bab33e9261f2a68117f6632d2455ad76 (patch) | |
tree | 230a12ef39d8bec98924739f3ac25f7cc95398bc | |
parent | Remove unneeded arg to lt/gt funcs (diff) | |
parent | Bump VERSION, switch to semver (diff) | |
download | watch-vcs-tags-2.0.0.tar.gz (sig) watch-vcs-tags-2.0.0.zip |
Merge branch 'release/v2.0.0'v2.0.0
* release/v2.0.0:
Bump VERSION, switch to semver
Add VERSION file
Add useful errors if tags not retrievable
-rw-r--r-- | VERSION | 1 | ||||
-rwxr-xr-x | watch-git-tags | 5 |
2 files changed, 4 insertions, 2 deletions
@@ -0,0 +1 @@ +2.0.0 diff --git a/watch-git-tags b/watch-git-tags index 3d3b7c6..79e26d8 100755 --- a/watch-git-tags +++ b/watch-git-tags @@ -9,8 +9,9 @@ lt() { # List sorted remote tags rt() { - git ls-remote -qt | - awk '!/\^\{\}$/{print substr($2,11)}' | + { git ls-remote -qt || + printf >&2 'Failed to retrieve tags for repository %s\n' "$PWD" + } | awk '!/\^\{\}$/{print substr($2,11)}' | LC_COLLATE=C sort } |