diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2015-10-15 09:01:54 +0200 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2015-10-15 09:01:54 +0200 |
| commit | ec401e4807165485a4b7a2dad4f74e373ced35ae (patch) | |
| tree | 6c2634bc48f0dbb004924201ae544db89dcc8f06 /git/cmd.py | |
| parent | 7e58e6a0d78f5298252b2d6c4b0431427ec6d152 (diff) | |
| parent | dc8032d35a23bcc105f50b1df69a1da6fe291b90 (diff) | |
| download | gitpython-ec401e4807165485a4b7a2dad4f74e373ced35ae.tar.gz | |
Merge pull request #358 from gitpython-developers/revert-357-autointerrupt_deadlock_fix
Revert "fix(cmd): fixed deadlock when stderr buffer overflow"
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): |
