From: Clemens Buchacher Date: Mon, 16 Nov 2015 08:05:58 +0000 (+0100) Subject: allow hooks to ignore their standard input stream X-Git-Tag: v2.6.4~17^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/af65f68cdf7540764583956e5819d85c5f6c74d1?ds=sidebyside;hp=af65f68cdf7540764583956e5819d85c5f6c74d1 allow hooks to ignore their standard input stream Since ec7dbd145 (receive-pack: allow hooks to ignore its standard input stream) the pre-receive and post-receive hooks ignore SIGPIPE. Do the same for the remaining hooks pre-push and post-rewrite, which read from standard input. The same arguments for ignoring SIGPIPE apply. Include test by Jeff King which checks that SIGPIPE does not cause pre-push hook failure. With the use of git update-ref --stdin it is fast enough to be enabled by default. Signed-off-by: Clemens Buchacher Signed-off-by: Jeff King ---