diff options
author | František Nečas <fifinecas@seznam.cz> | 2019-07-23 12:43:24 +0200 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-08-14 18:05:33 +0800 |
commit | 5b27339b0d7da97743256e871757d54bf5159bca (patch) | |
tree | 7b3329c8d3974c335792388d1779a252cc838c4f /git/cmd.py | |
parent | 859ad046aecc077b9118f0a1c2896e3f9237cd75 (diff) | |
download | gitpython-5b27339b0d7da97743256e871757d54bf5159bca.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 [] |