Hi Im not sure if the errors are related but I said I should mention both in case they are.
Firstly as I was trying to push approx 1/1.5GB to my repo I was getting the following error...
Counting objects: 4876, done.
warning: suboptimal pack - out of memory
fatal: Out of memory, malloc failed (tried to allocate 156741292 bytes)
error: failed to push some refs to '/var/www/...'
I eventually resolved this by running these three commands in both the clone and repository..
git config pack.windowMemory "15m"
git config pack.SizeLimit "3m"
git config pack.threads "1"
Instead of it stopping I just got the suboptimal pack warning instead and it continued.
Now the issue is I am getting this error...
Compressing objects: 100% (4803/4803), done.
error: pack-objects died of signal 984.59 MiB | 6.89 MiB/s
remote: fatal: early EOF
I have been looking everywhere, I have tried 2 things so far but no joy...
git config http.postBuffer 52428800
git config --add core.compression -1
Both clone and repo on same server using ubuntu and git version 1.9.1