title: Git push - suboptimal pack - out of memory
body: <p>I could really use some help here.</p>
  
  <p>I just created a new bare repo to act as a production target for dev pushes.
  I also have the working web directory on the server as a git repo.
  The server is running git 1.7.4.1 on centos5.5</p>
  
  <p>After creating the new repo in the web directory, I performed a git add .
  It tallied up something like 2300 &amp; some odd files &amp; over 230k insertions.</p>
  
  <p>I did a commit of the newly added file base. Went nice and clean.
  When I did a git push origin master though, it keeps giving me this (please note, I have 8 CPUs, hence the 8 threads. docs say this is normal);</p>
  
  <pre><code># git push --mirror
  Counting objects: 2000, done.
  Delta compression using up to 8 threads.
  warning: suboptimal pack - out of memory
  fatal: inflateInit: out of memory (no message)
  error: failed to push some refs to '/home/ggadmin/gg-prod.git'
  </code></pre>
  
  <p>I have tried the following things to resolve this, but all yield the same results;</p>
  
  <pre><code>git repack -adf --window-memory=100m
                                  ^ tried running this up to 1024m. Same result.
  </code></pre>
  
  <p>Even tried a force push, but got the same thing, only with a malloc error;</p>
  
  <pre><code># git push -f origin master
  Counting objects: 2000, done.
  Delta compression using up to 8 threads.
  warning: suboptimal pack - out of memory
  fatal: Out of memory, malloc failed (tried to allocate 2340 bytes)
  error: failed to push some refs to '/home/ggadmin/gg-prod.git'
  </code></pre>
  
  <p>I've been working on this for 2 days now and tried just about everything I can find on google and here on SO.</p>
  
  <p>I have reached my wits end with trying to get this fixed. Please tell me that someone out there knows what can be done to make this work?</p>