-
-
Notifications
You must be signed in to change notification settings - Fork 145
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a freshly initialized repository without commits fails here #292
Comments
This is Git internal behaviour, so I'd keep it the same. I just tested it in my terminal:
We could parse the exception and check for this exact string, but if Git returns this, I'd say let's leave it 😄 |
Fair, but didn't ask to do a git rev-list HEAD, I was asking to traverse_commits :) |
Just my two cents: We could make it configurable in the Repository class, with the current behavior as the default. This would allow users to choose to ignore it and return an empty object as alternative behavior. However, I'm not sure how frequent this scenario is. This could be labeled as PR welcome. |
I addressed this issue in the following PR: #300 |
doing only a 'git init' and then try to traverse commits on that repo, will fail here:
pydriller/pydriller/repository.py
Line 236 in 8bfbbbc
relates to this:
https://stackoverflow.com/questions/15628720/fatal-bad-default-revision-head
Expected behavior:
either:
I'm on git 2.39.3, MacOS.
The text was updated successfully, but these errors were encountered: