Skip to content

Commit 5982ff7

Browse files
committed
fix(cmd): Use buffered reads
Popen defaults to using unbuffered reads, which are extremely slow.
1 parent 9f4af7c commit 5982ff7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git/cmd.py

+1
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ def execute(self, command,
605605
proc = Popen(command,
606606
env=env,
607607
cwd=cwd,
608+
bufsize=-1,
608609
stdin=istream,
609610
stderr=PIPE,
610611
stdout=with_stdout and PIPE or None,

0 commit comments

Comments
 (0)