From e63e4e296021cd986dd6ca057ef5a45476203927 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 30 Nov 2018 10:27:43 +1300 Subject: Attempt to fetch all new tags after finding any This should ideally prevent notifying about the same tags repeatedly until they are manually fetched. This is a change in functionality, and should constitute a major version bump. --- watch-git-tags | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/watch-git-tags b/watch-git-tags index f73994a..af60664 100755 --- a/watch-git-tags +++ b/watch-git-tags @@ -53,6 +53,12 @@ for repo ; do ( # Write new tags to file LC_COLLATE=C comm -13 -- [ab] > new + # 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 + ) & done # Wait for each of those to finish -- cgit v1.2.3