aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwatch-git-tags5
1 files changed, 2 insertions, 3 deletions
diff --git a/watch-git-tags b/watch-git-tags
index 7ff640a..02814cb 100755
--- a/watch-git-tags
+++ b/watch-git-tags
@@ -57,9 +57,8 @@ for repo ; do (
# Attempt to quietly fetch new tags so that we don't notify about the same
# ones next time
- if [ -s new ] ; then
- git fetch --quiet --tags
- fi
+ [ -s new ] || continue
+ git -C "$repo" fetch --quiet --tags
) & done