update.sh: allow force_update to trigger a fetch
commit96c45a8d411e07c4972a96613d0e49639b07478a
authorKyle J. McKay <mackyle@gmail.com>
Sat, 30 Dec 2017 10:36:57 +0000 (30 02:36 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 30 Dec 2017 10:36:57 +0000 (30 02:36 -0800)
tree9e251f3abb31e19a6d7ba54389146a40d335a3b1
parent06f7aaa4bd4794223ad4be18affe725c0f715adb
update.sh: allow force_update to trigger a fetch

If the "force_update" environment variable is set to something
other than "0" then act as though the gitweb.lastrefresh value
has been unset and perform a fetch.

This provides a convenience knob to avoid having to first do
a separate `git config --unset gitweb.lastrefresh` in order
to make a fetch actually happen when update.sh is run.

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