When I do git push remotename branchname
to my remote on my shared hosting with 1and1 I get the following error message:
Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (7/7), 688 bytes | 0 bytes/s, done.
Total 7 (delta 2), reused 0 (delta 0)
remote: fatal: Out of memory, realloc failed
I have post-receive in hooks of my remote git repo set up with the following code:
#!/bin/sh
git --work-tree=/absolute/path/to/remotedir --git-dir=/absolute/path/to/remotedir/live.git checkout -f
When I SSH to my remote and issue free
I see there's plenty of free memory (not sure if this has anything to do with my problem):
total used free shared buffers cached
Mem: 12330360 11796336 534024 32080 25248 8553496
-/+ buffers/cache: 3217592 9112768
Swap: 270332 3552 266780
My remote is using:
Debian 3.14.73-2~ui80+4
git version 2.1.4
My local is using:
OS X 10.11.2
git version 2.4.9 (Apple Git-60)
Really not sure why this is happening. Any help appreciated!
EDIT
When I run ulimit -a
on the remote I get:
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 1
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 512
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) 1800
max user processes (-u) 42
virtual memory (kbytes, -v) 786432
file locks (-x) unlimited