-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Saving commits in a list for later access won't give access to stats #283
Labels
Comments
Thanks for raising the issue!
but this code doesn't work:
Not sure why, we'll have to check. I will put this issue as a bug and PR are welcome |
ishepard
added
bug
Something isn't working
PR welcome
Issue is confirmed, but not fixed yet
labels
Sep 15, 2023
The reason is that the object is inside a context manager, so it will get destroyed after the loop. I don't see a good solution to this, other than just iterating over the commits rather than putting them in a list. |
ishepard
changed the title
access commit.files or commit.lines will get an error: AttributeError: 'NoneType' object has no attribute 'repo'
Saving commits in a list for later access won't give access to stats
Sep 15, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
After upgrade from 2.5 to 2.5.1, the below code will raise exception.
To Reproduce
The below code:
will raise:
OS Version:
no-arch
The text was updated successfully, but these errors were encountered: