needsgc: switch to check_and_set_needsgc
commit437fce20fba9ae976150e6976202d604dee90af2
authorKyle J. McKay <mackyle@gmail.com>
Sun, 31 Dec 2017 04:01:13 +0000 (30 20:01 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 31 Dec 2017 04:01:13 +0000 (30 20:01 -0800)
tree1439ec9eedcdb047553534b72fce39a7ab4dc86b
parentf754ec2321b4d1828c04c6a5c50104449b569dfc
needsgc: switch to check_and_set_needsgc

Instead of duplicating the generic code to activate a "mini" gc
everywhere that the check needs to be done, replace those instances
with a call to the check_and_set_needsgc function.

And, while we're in there, add an extra call in the pre-auto-gc
hook because it's nice to have it there in case of external
repository activity.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
hooks/pre-auto-gc
jobd/generate-auto-gc-update.sh
jobd/update.sh