diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-10-15 09:01:28 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-10-15 09:01:28 +0200 |
commit | dc8032d35a23bcc105f50b1df69a1da6fe291b90 (patch) | |
tree | 6c2634bc48f0dbb004924201ae544db89dcc8f06 /git/cmd.py | |
parent | 7e58e6a0d78f5298252b2d6c4b0431427ec6d152 (diff) | |
download | gitpython-revert-357-autointerrupt_deadlock_fix.tar.gz |
Revert "fix(cmd): fixed deadlock when stderr buffer overflow"revert-357-autointerrupt_deadlock_fix
Diffstat (limited to 'git/cmd.py')
-rw-r--r-- | git/cmd.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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): |