We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
-ifstatus!=0:
315
-raiseGitCommandError(self.args, status, self.proc.stderr.read())
+stderr_value=self.proc.communicate()[1]
+ifself.proc.returncode!=0:
+raiseGitCommandError(self.args, status, stderr_value)
316
# END status handling
317
-returnstatus
+returnself.proc.returncode
318
# END auto interrupt
319
320
classCatFileContentStream(object):
0 commit comments