aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--VERSION1
-rwxr-xr-xwatch-git-tags5
2 files changed, 4 insertions, 2 deletions
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..227cea2
--- /dev/null
+++ b/VERSION
@@ -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
}