【问题标题】:Git pull fails with "bad pack header"Git pull 因“错误的包头”而失败
【发布时间】:2012-08-03 15:50:03
【问题描述】:

当我尝试从远程服务器拉取时,我收到此错误:

warning: no common commits
remote: Counting objects: 12358, done.
remote: warning: suboptimal pack - out of memory
error: git upload-pack: git-pack-objects died with error.
remote: Compressing objects:  92% (10914/11863)   fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: fatal: Out of memory, malloc failed (tried to allocate 42679466 bytes)
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header

我试图限制远程服务器per this thread上正在使用的内存:

git config --global pack.windowMemory "100m"
git config --global pack.SizeLimit "100m"
git config --global pack.threads "1" 

我不确定问题到底出在哪里。还有其他想法吗? TIA。

【问题讨论】:

标签: git git-pull


【解决方案1】:

根据Out of memory, malloc failed (tried to allocate 42679466 bytes) 消息,我猜您的服务器内存不足。你不是在一些嵌入式/虚拟/其他受限硬件上运行它吗?

【讨论】:

    猜你喜欢
    • 2011-11-13
    • 1970-01-01
    • 1970-01-01
    • 2023-03-10
    • 2017-07-28
    • 1970-01-01
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多