diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-30 10:27:43 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-30 10:27:43 +1300 |
commit | e63e4e296021cd986dd6ca057ef5a45476203927 (patch) | |
tree | 8866bdde17f28138153d2c92761bfd3675fad1eb | |
parent | Simplify git-ls-remote output filtering (diff) | |
download | watch-vcs-tags-e63e4e296021cd986dd6ca057ef5a45476203927.tar.gz watch-vcs-tags-e63e4e296021cd986dd6ca057ef5a45476203927.zip |
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.
-rwxr-xr-x | watch-git-tags | 6 |
1 files changed, 6 insertions, 0 deletions
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 |