Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Fix Git.transform_kwarg#899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Kwargs were not transformed correctly if a value was set to 0 due towrong 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. |
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. |
kangp3 commentedAug 13, 2019
Would it be possible to backport this fix to |
Byron commentedAug 14, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@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 . |
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.