From 5b27339b0d7da97743256e871757d54bf5159bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Ne=C4=8Das?= Date: Tue, 23 Jul 2019 12:43:24 +0200 Subject: Fix Git.transform_kwarg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Kwargs were not transformed correctly if a value was set to 0 due to wrong if condition. Signed-off-by: František Nečas --- git/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/cmd.py') 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 [] -- cgit v1.2.1