upload-pack: squelch progress indicator if client cannot see it
commit9462e3f59cd5a545330a9490a27d68b79f1d0ce7
authorJohannes Sixt <j6t@kdbg.org>
Tue, 16 Jun 2009 18:41:16 +0000 (16 20:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Jun 2009 18:38:43 +0000 (18 11:38 -0700)
tree1a19becaac1e84f0a88428976fca0408777ef04f
parent5d87dd4fcac808fc0f0b993b470644ba7d2d62a2
upload-pack: squelch progress indicator if client cannot see it

upload-pack runs pack-objects, which generates progress indicator output
on its stderr. If the client requests a sideband, this indicator is sent
to the client; but if it did not, then the progress is written to
upload-pack's own stderr.

If upload-pack is itself run from git-daemon (and if the client did not
request a sideband) the progress indicator never reaches the client and it
need not be generated in the first place. With this patch the progress
indicator is suppressed in this situation.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
upload-pack.c