summaryrefslogtreecommitdiff
path: root/t/t4013/diff.show_-c_master
diff options
context:
space:
mode:
authorLibravatar Robin Jarry <robin@jarry.cc>2021-11-10 10:29:42 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-11-10 13:43:04 -0800
commitd34182b9e37fc72e04e40e834775a1c29e80c970 (patch)
tree4728b5a641c0049410b8f85cc4b3cc2ee2603f96 /t/t4013/diff.show_-c_master
parentMerge branch 'vd/pthread-setspecific-g11-fix' into maint (diff)
downloadtgif-d34182b9e37fc72e04e40e834775a1c29e80c970.tar.xz
receive-pack: ignore SIGPIPE while reporting status to client
Before running the post-receive hook, status info is reported back to the client. If a remote client exits before or during the status report, receive-pack is killed by SIGPIPE and post-receive is never executed. The post-receive hook is often used to send email notifications (see contrib/hooks/post-receive-email), update bug trackers, start automatic builds, etc. Not executing it after an interrupted yet "successful" push can lead to inconsistencies. Ignore SIGPIPE before reporting status to the client to increase the chances of post-receive running if pre-receive was successful. This does not guarantee 100% consistency but it should resist early disconnection by the client. Signed-off-by: Robin Jarry <robin@jarry.cc> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.show_-c_master')
0 files changed, 0 insertions, 0 deletions