receive-pack: redirect unpack-objects stdout to /dev/null
commit59bfdfb82a0e51f6e0a40197cd662196406b1bec
authorJeff King <peff@peff.net>
Fri, 21 Sep 2012 05:32:52 +0000 (21 01:32 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Sep 2012 16:44:11 +0000 (21 09:44 -0700)
treeba83e6a84c5bb50ca03f3506fcff685216c91125
parent8ef2794ba8ada6b64afb22ff7b235dce583b9712
receive-pack: redirect unpack-objects stdout to /dev/null

The unpack-objects command should not generally produce any
output on stdout. However, if it's given extra input after
the packfile, it will spew the remainder to stdout. When
called by receive-pack, this means we will break protocol,
since our stdout is connected to the remote send-pack.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c