summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 30028487..b6305176 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -885,7 +885,7 @@ class Git(LazyMixin):
if len(name) == 1:
if value is True:
return ["-%s" % name]
- elif type(value) is not bool:
+ elif value not in (False, None):
if split_single_char_options:
return ["-%s" % name, "%s" % value]
else:
@@ -893,7 +893,7 @@ class Git(LazyMixin):
else:
if value is True:
return ["--%s" % dashify(name)]
- elif type(value) is not bool:
+ elif value not in (False, None):
return ["--%s=%s" % (dashify(name), value)]
return []