2012-08-03 73 views
0

當我試圖從遠程服務器拉我得到這個錯誤:的Git拉失敗,「壞包包頭」

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

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上使用

我不確定這裏真正的問題是什麼。任何其他想法? TIA。

+0

相關:http://stackoverflow.com/questions/4826639/repack-of-git-repository-fails – thameera 2012-08-03 18:01:08

回答

0

根據Out of memory, malloc failed (tried to allocate 42679466 bytes)消息,我的猜測是你的服務器內存不足。你不是在一些嵌入/虛擬/有限的硬件上運行它嗎?