git 错误致命:fetch-pack:无效的索引包输出

kon*_*ety 17 git android-source repo

我一直在尝试克隆 aosp 存储库,上周工作正常,但最近两天就不行了。我将其范围缩小到 deqp 依赖项。然而,我遇到了多个错误,但总是导致“致命:fetch-pack:无效的索引包输出”。\n最后一次尝试导致了这样的结果:

\n
\xef\x8c\x92 \xee\x82\xb0 \xef\x84\x95 /run/me/j/d/a/deqp \xee\x82\xb0 \xef\x87\x93 \xef\x84\xa6 master \xee\x82\xb0 git config http.postBuffer 524288000\n\xef\x8c\x92 \xee\x82\xb0 \xef\x84\x95 /run/me/j/d/a/deqp \xee\x82\xb0 \xef\x87\x93 \xef\x84\xa6 master \xee\x82\xb0 git fetch --unshallow              \xee\x82\xb2 \xe2\x9c\x94 \nremote: Finding sources: 100% (126764/126764)\nremote: Total 126764 (delta 86667), reused 126714 (delta 86667)\nReceiving objects: 100% (126764/126764), 2.33 GiB | 6.12 MiB/s, done.\nerror: inflate: data stream error (incorrect data check)\nfatal: serious inflate inconsistency\nfatal: fetch-pack: invalid index-pack output\n
Run Code Online (Sandbox Code Playgroud)\n

可能是什么问题呢?

\n

Sma*_*ror 12

我在 macOS Big Sur 11.6.1 上也遇到了这个问题,我运行ulimit -n unlimitedulimit -f unlimited解决了这个问题。packedGitLimit增加 gitconfig 上的orpackedGitWindowSize和的值packSizeLimit对我来说不起作用。


小智 6

如果项目太大,尝试使用--depth=1 解决。


小智 5

尝试运行以下命令:

git config pack.windowMemory 10m

git config pack.packSizeLimit 20m

然后重试 git 克隆。