当我运行 git push to origin 时,有时会出现如下错误:
error: git-shell died of signal 13
fatal: The remote end hung up unexpectedly
如果再试一次,它成功了,但不知道原因。任何人都可以发光吗?
顺便说一句,我从这里复制了post-receive.mirrorpush
钩子,其中提到:
# flush STDIN coming from git; we have no use for that info in this hook but
# if you don't do this, git-shell sometimes dies of a signal 13 (SIGPIPE)
[ -t 0 ] || cat >/dev/null
我应该阅读 STDINpre-receive
并使用post-receive
钩子来避免这种情况吗?
先感谢您。