title: Weird GIT Issue : push Failing with HTTP error 502
body: <p>I have been running into a very strange issue with a git repo where I am able to edit and update an existing file (css, html, js, xml) and do a normal push BUT if I add new files to the repo or REPLACE existing files, I get the following error when I would usually input my credentials on a successful push:</p>
  
  <pre><code>error: RPC failed; result=22, HTTP code = 502
  fatal: The remote end hung up unexpectedly
  fatal: The remote end hung up unexpectedly
  </code></pre>
  
  <p>I have read over the many posts on this issue and have run:</p>
  
  <pre><code>git config http.postBuffer 524288000
  </code></pre>
  
  <p>from the clone directory.</p>
  
  <p>I am running: git version 1.8.3.2</p>
  
  <pre><code>$ git remote -v  outputs the following
  origin http://[redacted]/git/TestProgram.git (fetch)
  origin http://[redacted]/git/TestProgram.git (push)
  </code></pre>
  
  <p>On the server log, I see a Bad Gateway error but I KNOW that the git repo exists and is correct being that I'm able to clone it and update files - just not add or replace files in the clone.  I'm leaning towards this being a disk write permissions issue.  Has anyone run into anything similar - does this assessment sound valid?</p>
  
  <p>Any ideas would be welcome, as I've been bashing my face off of this all week.</p>