From 5982ff789e731c1cbd9b05d1c6826adf0cd8080b Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 24 Feb 2016 21:39:18 -0600 Subject: [PATCH] fix(cmd): Use buffered reads Popen defaults to using unbuffered reads, which are extremely slow. --- git/cmd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/git/cmd.py b/git/cmd.py index c99c04e2c..2f900ae20 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -605,6 +605,7 @@ def execute(self, command, proc = Popen(command, env=env, cwd=cwd, + bufsize=-1, stdin=istream, stderr=PIPE, stdout=with_stdout and PIPE or None,