summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 64c3d480..50b1e321 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -893,7 +893,7 @@ class Git(LazyMixin):
else:
if value is True:
return ["--%s" % dashify(name)]
- elif value not in (False, None):
+ elif value is not False and value is not None:
return ["--%s=%s" % (dashify(name), value)]
return []