summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorColin Snover <csnover@users.noreply.github.com>2016-02-24 21:39:18 -0600
committerColin Snover <csnover@users.noreply.github.com>2016-02-24 21:39:18 -0600
commit5982ff789e731c1cbd9b05d1c6826adf0cd8080b (patch)
treedf5a911246fc0f586b62b8439a81732ddc006838 /git/cmd.py
parent9f4af7c6db25c5bbec7fdc8dfc0ea6803350d94c (diff)
downloadgitpython-5982ff789e731c1cbd9b05d1c6826adf0cd8080b.tar.gz
fix(cmd): Use buffered reads
Popen defaults to using unbuffered reads, which are extremely slow.
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/git/cmd.py b/git/cmd.py
index c99c04e2..2f900ae2 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -605,6 +605,7 @@ class Git(LazyMixin):
proc = Popen(command,
env=env,
cwd=cwd,
+ bufsize=-1,
stdin=istream,
stderr=PIPE,
stdout=with_stdout and PIPE or None,