gitmacosgoogle-cloud-source-repos

git push hangs (forever) and git-remote-https uses 99.5% CPU


I'm trying to git push a small project (712kb not taking into account the .git folder) to a new repo, hosted on Google Source Repositories, and the push never finishes. It stops right after printing the Total message (hangs for at least hours).

Enumerating objects: 77, done.
Counting objects: 100% (77/77), done.
Delta compression using up to 8 threads
Compressing objects: 100% (71/71), done.
Writing objects: 100% (77/77), 131.62 KiB | 6.93 MiB/s, done.
Total 77 (delta 12), reused 0 (delta 0)

The only workaround was to split the commit into two smaller commits (no specific files need to be separated into the second commit; any random files do the trick). This confirms that it's not an auth issue. But it's not a real solution.

None of the answers I've found fix the issue. I'm mainly referring to :

I'm looking for other ideas to identify a proper solution to this issue.


Solution

  • Maybe you could try to lower the size of http.postBuffer instead of increasing it. I remember it did the trick for me when I faced the same problem