3

When I try downloading or cloning a large Git repo I keep getting an "out of memory" error like so:

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: warning: suboptimal pack - out of memory[K
remote: fatal: Out of memory, malloc failed (tried to allocate 230789474 bytes)[K
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header

I am using the Git GUI provided with the Git client from the Git website. The Cygwin version has the same problem.

How do I fix this?

1

I think, it's not Windows-Git problem, but malformed repo, because

aborting due to possible repository corruption on the remote side

Yes, it's common problem for 32bit Windows and big files: (closed) ticket for msysgit and Git on Windows, “Out of memory - malloc failed” topic here.

Solution - x64, smaller files or fine-tune git config

  • no, the git client on mac osx (which is how i uploaded the file to begin with) can pull it just fine – chacham15 Jan 16 '13 at 22:44
  • @chacham15 - oops, sorry, I'm not a sensitive to predict this. Is your repo public (or can be reached in some way) - I think to try create own clone (without any Windows-Git) – Lazy Badger Jan 16 '13 at 23:14
  • no, its a private repo but pulling on osx works just fine – chacham15 Jan 16 '13 at 23:22
  • Ok, it seems as well-known problem. URLs added to answer – Lazy Badger Jan 17 '13 at 1:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.