Title: AttributeError: 'NoneType' object has no attribute 'TerminateProcess' when accessing tree during iter_commits · Issue #2102 · gitpython-developers/GitPython · GitHub
Open Graph Title: AttributeError: 'NoneType' object has no attribute 'TerminateProcess' when accessing tree during iter_commits · Issue #2102 · gitpython-developers/GitPython
X Title: AttributeError: 'NoneType' object has no attribute 'TerminateProcess' when accessing tree during iter_commits · Issue #2102 · gitpython-developers/GitPython
Description: GitPython version: 3.1.46 Given the following code: def process_commits() -> None: repo = Repo(search_parent_directories=True) for commit in repo.iter_commits(max_count=10): print(commit.hexsha) commit.tree / "file.yml" if __name__ == "_...
Open Graph Description: GitPython version: 3.1.46 Given the following code: def process_commits() -> None: repo = Repo(search_parent_directories=True) for commit in repo.iter_commits(max_count=10): print(commit.hexsha) co...
X Description: GitPython version: 3.1.46 Given the following code: def process_commits() -> None: repo = Repo(search_parent_directories=True) for commit in repo.iter_commits(max_count=10): print(commit.hexsha)...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/2102
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: 'NoneType' object has no attribute 'TerminateProcess' when accessing tree during iter_commits","articleBody":"GitPython version: 3.1.46\n\nGiven the following code:\n\n```\ndef process_commits() -\u003e None:\n repo = Repo(search_parent_directories=True)\n for commit in repo.iter_commits(max_count=10):\n print(commit.hexsha)\n commit.tree / \"file.yml\"\n\nif __name__ == \"__main__\":\n process_commits()\n```\n\nUpon exiting the python script, the following error occurs:\n\n```\nException ignored in: \u003cfunction _AutoInterrupt.__del__ at 0x000002B181033CE0\u003e\nTraceback (most recent call last):\n File \".venv\\Lib\\site-packages\\git\\cmd.py\", line 376, in __del__\n File \".venv\\Lib\\site-packages\\git\\cmd.py\", line 367, in _terminate\n File \"C:\\Program Files\\Python312\\Lib\\subprocess.py\", line 1673, in terminate\nAttributeError: 'NoneType' object has no attribute 'TerminateProcess'\n```\n\nThe error does not occur if the `commit.tree` call is commented out.","author":{"url":"https://github.com/MichaelJJ","@type":"Person","name":"MichaelJJ"},"datePublished":"2026-02-19T19:14:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2102/GitPython/issues/2102"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:23673296-0b08-67cf-1969-a7f9d33b994a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1BC:14837E:571E8F:775642:6A559F2B |
| html-safe-nonce | 02c464fffd79251ef850d36b742f2cf039b59421dd836de535c906e05a745a4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUJDOjE0ODM3RTo1NzFFOEY6Nzc1NjQyOjZBNTU5RjJCIiwidmlzaXRvcl9pZCI6IjI3NzgzNDY4MjAwOTA1Njg0OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3ad43e9eaf7ffa0807c958818d80ff012bd536fb3a1563a4c474befd7199b6fa |
| hovercard-subject-tag | issue:3964626883 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/2102/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1eaa88765ce741503172293885accfe269ce6c7deb1a28975d290933f6242c32/gitpython-developers/GitPython/issues/2102 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1eaa88765ce741503172293885accfe269ce6c7deb1a28975d290933f6242c32/gitpython-developers/GitPython/issues/2102 |
| og:image:alt | GitPython version: 3.1.46 Given the following code: def process_commits() -> None: repo = Repo(search_parent_directories=True) for commit in repo.iter_commits(max_count=10): print(commit.hexsha) co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MichaelJJ |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | aa21baa44893467b0b640d0300538f84ca8c475b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width