From dc8032d35a23bcc105f50b1df69a1da6fe291b90 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 15 Oct 2015 09:01:28 +0200 Subject: Revert "fix(cmd): fixed deadlock when stderr buffer overflow" --- git/cmd.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/git/cmd.py b/git/cmd.py index 6cf4d8a6..3cdc68ab 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -310,11 +310,11 @@ class Git(LazyMixin): """Wait for the process and return its status code. :raise GitCommandError: if the return status is not 0""" - stderr_value = self.proc.communicate()[1] - if self.proc.returncode != 0: - raise GitCommandError(self.args, status, stderr_value) + status = self.proc.wait() + if status != 0: + raise GitCommandError(self.args, status, self.proc.stderr.read()) # END status handling - return self.proc.returncode + return status # END auto interrupt class CatFileContentStream(object): -- cgit v1.2.1