Fix Git.transform_kwarg#899
Conversation
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>
|
Thanks a lot! Fantastic test and fix! I hope putting it into v3.0.0 which drops python 2 as well is working for you. |
Sorry, something went wrong.
|
Thanks for merging. We will use my branch as a dependency until v3.0.0 is released on PyPI to have it working correctly for now and then we will switch back to the PyPI release. |
Sorry, something went wrong.
|
Would it be possible to backport this fix to |
Sorry, something went wrong.
|
@kangp3 Thus far, maintaining two versions wasn't planned, but I will see if I can get a one-off release done. Published in release v2.1.14 . |
Sorry, something went wrong.
While working on our project I found that
old_repo.git.rev_list('HEAD', max_parents=0)started to work differently after the new release of GitPython and our tests started to fail. After some debugging I found the problem. Kwargs were not transformed correctly if a value was set to 0 due to wrong if condition:The commit also contains a test for the edge case.