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/test/test_git.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/test/test_git.py')
-rw-r--r-- | git/test/test_git.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py index 30a6a335..4a189267 100644 --- a/git/test/test_git.py +++ b/git/test/test_git.py @@ -86,6 +86,7 @@ class TestGit(TestBase): assert_equal(["--max-count"], self.git.transform_kwargs(**{'max_count': True})) assert_equal(["--max-count=5"], self.git.transform_kwargs(**{'max_count': 5})) + assert_equal(["--max-count=0"], self.git.transform_kwargs(**{'max_count': 0})) assert_equal([], self.git.transform_kwargs(**{'max_count': None})) # Multiple args are supported by using lists/tuples |