gc.sh: allow force_gc to trigger a full gc
commit9bda2e5168f5b47240bd03b63236ef6fb034db4e
authorKyle J. McKay <mackyle@gmail.com>
Mon, 27 Nov 2017 15:36:37 +0000 (27 07:36 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 27 Nov 2017 15:36:37 +0000 (27 07:36 -0800)
tree1f38e6792b3882311c1177a2414a50fb7878c65a
parentb28f39af7fa42217a336ea234268a1f9e6a6b995
gc.sh: allow force_gc to trigger a full gc

If the "force_gc" environment variable is set to something
other than "0" than act as though the gitweb.lastgc value
has been unset and perform a full gc.

This provides a convenience knob to avoid having to first
do a separate `git config --unset gitweb.lastgc` in order
to make a full gc happen.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
jobd/gc.sh