Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork961
Closed
Description
When calling theiter_commits method it throws anfatal: ambiguous argument error in case the provided branch has the same name as a file.
Scenario:
> git branch -a*test> lstest
python:
r=git.repo.Repo(".")b=r.branches[0][cforcinr.iter_commits(r)]'git rev-list test'returnedwithexitcode128stderr:'fatal: ambiguous argument 'test':bothrevisionandfilenameUse'--'toseparatepathsfromrevisions,likethis:'git <command> [<revision>...] -- [<file>...]'
As of git I would simply add--, but what am I supposed to do in GitPython?