We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 51f79ff + 2cc8f1e commit 7e58e6aCopy full SHA for 7e58e6a
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
- status = self.proc.wait()
314
- if status != 0:
315
- raise GitCommandError(self.args, status, self.proc.stderr.read())
+ stderr_value = self.proc.communicate()[1]
+ if self.proc.returncode != 0:
+ raise GitCommandError(self.args, status, stderr_value)
316
# END status handling
317
- return status
+ return self.proc.returncode
318
# END auto interrupt
319
320
class CatFileContentStream(object):
0 commit comments