Skip to content

Commit dc8032d

Browse files
committed
Revert "fix(cmd): fixed deadlock when stderr buffer overflow"
1 parent 7e58e6a commit dc8032d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

git/cmd.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,11 @@ def wait(self):
310310
"""Wait for the process and return its status code.
311311
312312
: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)
313+
status = self.proc.wait()
314+
if status != 0:
315+
raise GitCommandError(self.args, status, self.proc.stderr.read())
316316
# END status handling
317-
return self.proc.returncode
317+
return status
318318
# END auto interrupt
319319

320320
class CatFileContentStream(object):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy