I'm trying to move my repository from one remote server to another one with saving all history.
At first I pulled all changes from remote server to my local repository. Then I created new bare repository on destination server.
After that I tried to pull all branches from my local repository to remote one and I got following error:
Counting objects: 3758, done.
Compressing objects: 100% (2457/2457)
Writing objects: 100% (3758/3758), 6.96 MiB | 45 KiB/s
Writing objects: 100% (3758/3758), 6.98 MiB | 46 KiB/s, done.
Total 3758 (delta 2334), reused 2342 (delta 1282)
**remote: fatal: Out of memory, malloc failed (tried to allocate 56 bytes)**
error: unpack failed: index-pack abnormal exit
To XXX.XXX.XXX.XXX:test.git
! [remote rejected] dev -> dev (unpacker error)
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'XXX.XXX.XXX.XXX:test.git'
But at the same time I can clone this bare repository, add files to it and push to remote server. What can cause out of memory error?