Git – remote: fatal: inflateInit: out of memory

Today we faced a problem while we clone a git.
ssh://xxxx@xxxxx.icreativelabs.com/home/xm/git/xxxx.git
stdin: is not a tty
remote: Counting objects: 850, done.
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: fatal: inflateInit: out of memory (no message)
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
The problem it’s on the memory, this is step for fixing the problem it’s
- Go to your server
- Enter your bare git location
- git repack -adf –window-memory=100m
Counting objects: 850, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (823/823), done.
Writing objects: 100% (850/850), done.
Total 850 (delta 378), reused 219 (delta 0)
Now you can clone your git again and hope this can help.
Popularity: 1% [?]















