summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Danier <danier@team23.de>2016-06-01 18:01:34 +0200
committerDavid Danier <danier@team23.de>2016-06-01 18:01:34 +0200
commit85e78ca3d9decf8807508b41dbe5335ffb6050a7 (patch)
tree04467e9105a0905c51bd18b878459d169a170e51
parent7548a5c43f8c39a8143cdfb9003838e586313078 (diff)
downloadgitpython-85e78ca3d9decf8807508b41dbe5335ffb6050a7.tar.gz
Make sure os is not even partly destroyed
-rw-r--r--git/cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/cmd.py b/git/cmd.py
index c29e3485..a8afc144 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -287,7 +287,7 @@ class Git(LazyMixin):
return
# can be that nothing really exists anymore ...
- if os is None:
+ if os is None or os.kill is None:
return
# try to kill it