Fix `git push` hanging when stdout/stderr is big

Fixes GH-145