summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git/cmd.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 263c8ba7..484a0181 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -365,8 +365,11 @@ class Git(LazyMixin):
proc.stderr.close()
# did the process finish already so we have a return code ?
- if proc.poll() is not None:
- return
+ try:
+ if proc.poll() is not None:
+ return
+ except OSError as ex:
+ log.info("Ignored error after process had died: %r", ex)
# can be that nothing really exists anymore ...
if os is None or getattr(os, 'kill', None) is None: