问题
I am trying to set up a new dev machine and I am not able to clone any repos.
remote: Counting objects: 99504, done.
remote: Compressing objects: 100% (22812/22812), done.
Corrupted MAC on input. (93674/99504), 169.15 MiB | 3.06 MiB/s
Disconnecting: Packet corrupt
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
回答1:
The server is probably straining under too much load. See this post (similar problem but with rsync in stead of git):
The problem was that the origin server had some big load on it, the server was running out of memory and it was swaping a lot (extracted from the top command)
回答2:
This could also be due to a hardware issue. Try troubleshooting your hardware by bypassing any intermediary interfaces (switches, routers, etc) or trying a different NIC.
If it is a hardware issue you may also see problems when accessing large files via other protocols.
回答3:
A git-daemon restart should give a possible solution (it did to me).
来源:https://stackoverflow.com/questions/7366907/git-clone-issue-clone-fails-with-corrupted-mac-on-input