update.sh: replace "show_progress=1 bang ..." with "bang_eval ..."
commit7a2c92c58bf7bee55a8c1f6573e5efb31075a401
authorKyle J. McKay <mackyle@gmail.com>
Mon, 2 Dec 2013 07:09:49 +0000 (1 23:09 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 2 Dec 2013 07:09:49 +0000 (1 23:09 -0800)
treeb26158c724a0839a37f4c3f5b90fbfbccd582c7d
parentef3b12193f2102fca88abd9530f3dfb8ffc14616
update.sh: replace "show_progress=1 bang ..." with "bang_eval ..."

When computing the before and after refs on a mirror update in order
to trigger the appropriate ref-change actions, it's necessary to
redirect the output of some commands.  The only way to guarantee
that output doesn't get swallowed into the bang log when running the
command using bang is to set the show_progress variable.  This has
the unfortunate effect of also sending all that output into the bang
log as well.

Replace the "show_progress=1 bang CMD..." commands that use redirection
with equivalent "bang_eval 'CMD...'" commands so that a well-defined
failure mode can be maintained, the redirected output goes where it
needs to and unnecessarily output does not end up in the bang log.
jobd/update.sh