From b3d9b8df38dacfe563b1dd7abb9d61b664c21186 Mon Sep 17 00:00:00 2001 From: Dmitry Nikulin Date: Tue, 24 Jul 2018 23:43:48 +0300 Subject: Fix TypeError in git.execute(..., output_stream=file) This fixes #619 - raise GitCommandError(not TypeError) when output_stream is set in git.execute --- git/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/cmd.py') diff --git a/git/cmd.py b/git/cmd.py index 54537a41..30028487 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -794,7 +794,7 @@ class Git(LazyMixin): else: max_chunk_size = max_chunk_size if max_chunk_size and max_chunk_size > 0 else io.DEFAULT_BUFFER_SIZE stream_copy(proc.stdout, output_stream, max_chunk_size) - stdout_value = output_stream + stdout_value = proc.stdout.read() stderr_value = proc.stderr.read() # strip trailing "\n" if stderr_value.endswith(b"\n"): -- cgit v1.2.1