diff options
author | František Nečas <fifinecas@seznam.cz> | 2019-07-23 12:43:24 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2019-07-29 08:21:41 +0800 |
commit | daa3f353091ada049c0ede23997f4801cbe9941b (patch) | |
tree | 08518c602926fb22e3fea62a75cbcaeb3ec95e78 /git/cmd.py | |
parent | 80204335d827eb9ed4861e16634822bf9aa60912 (diff) | |
download | gitpython-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 [] |