1 parent 7e58e6a commit dc8032dCopy full SHA for dc8032d
git/cmd.py
@@ -310,11 +310,11 @@ def wait(self):
310
"""Wait for the process and return its status code.
311
312
:raise GitCommandError: if the return status is not 0"""
313
- stderr_value = self.proc.communicate()[1]
314
- if self.proc.returncode != 0:
315
- raise GitCommandError(self.args, status, stderr_value)
+ status = self.proc.wait()
+ if status != 0:
+ raise GitCommandError(self.args, status, self.proc.stderr.read())
316
# END status handling
317
- return self.proc.returncode
+ return status
318
# END auto interrupt
319
320
class CatFileContentStream(object):
0 commit comments