0

I get this error trying to git pull:

$git pull origin master
remote: Counting objects: 91, done.
remote: Compressing objects: 100% (79/79), done.
fatal: Out of memory, malloc failed (tried to allocate 2445656885 bytes)
fatal: unpack-objects failed

How can I resolve this?

I have tried setting some memory limits in the .gitconfig, but it did not help:

[pack]
    threads = 1
    deltaCacheSize = 128m
    packSizeLimit = 128m
    windowMemory = 128m
[core]
    packedGitLimit = 128m
    packedGitWindowSize = 128m

1 Answers1

0

2445656885 is approx 2.5 GB. A quite unusually large number, I am not sure if malloc even allowed to request this much. May be a sign of a software bug.Check your git installation.

ilkhd
  • 224
  • 1
  • 3
  • Well I have this one binary file which is quite big. Git allowed a push and pull on a 64bit system. Now I pulled from a 32bit system, could that be it? –  Feb 10 '15 at 23:53
  • Yes. This could be the reason. – ilkhd Feb 11 '15 at 10:10
  • Is there a way to tell git to operate on disk space using big files? –  Feb 11 '15 at 14:20