git 克隆失败,无法在远程重新打包
在研究这个问题时,我发现了很多关于内存耗尽的消息,但我实际上没有收到任何 malloc 错误。
当我尝试克隆时,我得到了这个中间压缩
error: git-upload-pack: git-pack-objects died with error.
fatal: git-upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
当我转到远程并运行 git gc 时,它给了我这个..(通过压缩得到相同的量)
error: failed to run repack
当我运行 git fsck 时代码> 我根本没有输出...
想法?
While researching this I have found a lot of messages about this concerning the exhaustion of memory, but I am not actually getting any malloc errors.
When I try and clone I get this mid-compression
error: git-upload-pack: git-pack-objects died with error.
fatal: git-upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
When I go to the remote and run git gc
it gives me this.. (same amount through compression)
error: failed to run repack
When I run git fsck
I get no output at all...
ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这取决于您在
git-pack-objects dead with error
之前应该看到的行。例如,如果您应该看到类似以下的行:(
如“GIT pull”中所述错误 - 远程对象已损坏”)
在这种情况下,您可以尝试(在远程服务器上) git fsck --full 21f3981 ; git repack (按照 J-16 SDiZ 的建议)
您会在以下位置找到类似的错误消息这个旧(2008)线程,Linus Torvald 建议,出现错误诸如“
无法解压 .. header
”之类的消息:“
无法解压 .. header
”问题据猜测完全是一个问题损坏的松散物体。你应该有一个名为
It depends on the line you should see before
git-pack-objects died with error
.For instance, if you should see a line like:
(as described in "GIT pull error - remote object is corrupted")
In that case, you might try (on the remote server) a
git fsck --full 21f3981 ; git repack
(as suggested by J-16 SDiZ)You will find similar error message in this old (2008) thread, with Linus Torvald suggesting, for an error message like "
unable to unpack .. header
":The "
unable to unpack .. header
" problem would at a guess be a totallycorrupted loose object. You should have a file named