title: Git push results in "fatal: sha1 file '<stdout>' write error: Invalid argument" error
body: <p>After sleuthing for about 3 hours now I managed to give myself a headache and not found a fix to this error:</p>
  
  <pre><code>Compressing objects: 100% (228/228), done.
  Write failed: The connection was abortediB | 3 KiB/s
  fatal: sha1 file '&lt;stdout&gt;' write error: Invalid argument
  error: failed to push some refs to 'git@heroku.com:---------.git'
  </code></pre>
  
  <p>I am pushing a commit to heroku, and the above is thrown out. How do I fix this?</p>