summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorFrantišek Nečas <fifinecas@seznam.cz>2019-07-23 12:43:24 +0200
committerSebastian Thiel <byronimo@gmail.com>2019-07-29 08:21:41 +0800
commitdaa3f353091ada049c0ede23997f4801cbe9941b (patch)
tree08518c602926fb22e3fea62a75cbcaeb3ec95e78 /git/cmd.py
parent80204335d827eb9ed4861e16634822bf9aa60912 (diff)
downloadgitpython-daa3f353091ada049c0ede23997f4801cbe9941b.tar.gz
Fix Git.transform_kwarg
Kwargs were not transformed correctly if a value was set to 0 due to wrong if condition. Signed-off-by: František Nečas <fifinecas@seznam.cz>
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 []