I have a large pre-hook script I maintain to run checks on code, a build, run regression, and email a set of release notes. It has been working for a while, but some recent changes were made and now when we do a git push it results in a "Broken pipe" error. None of my changes appear to do anything that could cause a pipe error.
I tried running with GIT_TRACE and via strace and it doesn't really appear to be obvious to me what the issue is:
... Email Sent Successfully No errors! [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 125625 --- SIGCHLD (Child exited) @ 0 (0) --- write(4, "009c4a23dfcd66ae44d23435e45a2371"..., 156) = -1 EPIPE (Broken pipe) --- SIGPIPE (Broken pipe) @ 0 (0) --- +++ killed by SIGPIPE +++