| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:293b5b77-8b5d-cc61-7f4b-7f80488ac0a5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 83CC:2B7BDC:5C3278:7A97FA:6B00A852 |
| html-safe-nonce | 9f4a349de4dbb652a4de53901b6e8b523fbb8be9b72eb6f211b9a6791c95ee73 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0NDOjJCN0JEQzo1QzMyNzg6N0E5N0ZBOjZCMDBBODUyIiwidmlzaXRvcl9pZCI6IjExODU2MTQxNTMyMTQxMDk3NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 15eaf1fbea4e39d043ecbdb9c481ec62c2ad334ee6fa37a19aab56e64982fc2f |
| hovercard-subject-tag | pull_request:5414119801 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/gitpython-developers/GitPython/2350/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/75357d4cf6ceeeb18a12ef68c9f570d14169e6503267ad44505a351225254d9d/gitpython-developers/GitPython/pull/2350 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75357d4cf6ceeeb18a12ef68c9f570d14169e6503267ad44505a351225254d9d/gitpython-developers/GitPython/pull/2350 |
| og:image:alt | Disclaimer: The changes are AI written but the issue is real and I have tested the fix
Follow up to #686
This breaks the reference cycle such that a Repo close on longer requires a gc.collect to re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jenshnielsen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 455b493e3402a3a3a06beac5d20bb7db3da060808b220aa48d6a7eca7c59863a |
| turbo-cache-control | no-cache |
| 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 | 2f575159976167242d488c0b062eb355c4e198b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/gitpython-developers/GitPython/pull/2350#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2350 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2350 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=gitpython-developers%2FGitPython |
| Reload | https://github.com/gitpython-developers/GitPython/pull/2350 |
| Reload | https://github.com/gitpython-developers/GitPython/pull/2350 |
| Reload | https://github.com/gitpython-developers/GitPython/pull/2350 |
| gitpython-developers | https://github.com/gitpython-developers |
| GitPython | https://github.com/gitpython-developers/GitPython |
| Code | https://github.com/gitpython-developers/GitPython |
| Issues1 (1) | https://github.com/gitpython-developers/GitPython/issues |
| Pull requests | https://github.com/gitpython-developers/GitPython/pulls |
| Discussions | https://github.com/gitpython-developers/GitPython/discussions |
| Actions | https://github.com/gitpython-developers/GitPython/actions |
| Security and quality42 (42) | https://github.com/gitpython-developers/GitPython/security |
| Insights | https://github.com/gitpython-developers/GitPython/insights |
| https://github.com/gitpython-developers/GitPython |
| Byron | https://github.com/Byron |
| gitpython-developers:main | https://github.com/gitpython-developers/GitPython/tree/main |
| jenshnielsen:jenshnielsen/agents/gitpython-repo-close-gc-optimization | https://github.com/jenshnielsen/GitPython/tree/jenshnielsen/agents/gitpython-repo-close-gc-optimization |
| Conversation | https://github.com/gitpython-developers/GitPython/pull/2350 |
| Commits3 (3) | https://github.com/gitpython-developers/GitPython/pull/2350/commits |
| Checks | https://github.com/gitpython-developers/GitPython/pull/2350/checks |
| Files changed | https://github.com/gitpython-developers/GitPython/pull/2350/files |
| Fix reference cycle in IndexFile._raise_exc and remove gc.collect() | https://github.com/gitpython-developers/GitPython/pull/2350#top |
| Byron | https://github.com/Byron |
| gitpython-developers:main | https://github.com/gitpython-developers/GitPython/tree/main |
| jenshnielsen:jenshnielsen/agents/gitpython-repo-close-gc-optimization | https://github.com/jenshnielsen/GitPython/tree/jenshnielsen/agents/gitpython-repo-close-gc-optimization |
|
| https://github.com/jenshnielsen |
| jenshnielsen | https://github.com/jenshnielsen |
| Nov 20, 2026 | https://github.com/gitpython-developers/GitPython/pull/2350#issue-6512353617 |
| #686 | https://github.com/gitpython-developers/GitPython/pull/686 |
| Please reload this page | https://github.com/gitpython-developers/GitPython/pull/2350 |
| jenshnielsen | https://github.com/jenshnielsen |
| November 20, 2026 12:59 | https://github.com/gitpython-developers/GitPython/pull/2350#commits-pushed-2d2570b |
|
| https://github.com/jenshnielsen |
|
| https://github.com/apps/github-copilot-cli |
| fix(index): don't keep the repository alive after IndexFile.add() | https://github.com/gitpython-developers/GitPython/pull/2350/commits/2d2570b45685358550916380142244c790b03948 |
| 2d2570b | https://github.com/gitpython-developers/GitPython/pull/2350/commits/2d2570b45685358550916380142244c790b03948 |
|
| https://github.com/jenshnielsen |
|
| https://github.com/apps/github-copilot-cli |
| perf(repo): stop forcing garbage collections in Repo.close() | https://github.com/gitpython-developers/GitPython/pull/2350/commits/d7fd408817c30b4adbd0bc5e1d75f5051d13f5b2 |
| d7fd408 | https://github.com/gitpython-developers/GitPython/pull/2350/commits/d7fd408817c30b4adbd0bc5e1d75f5051d13f5b2 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| November 20, 2026 13:28 | https://github.com/gitpython-developers/GitPython/pull/2350#event-36772834971 |
| started reviewing | https://github.com/gitpython-developers/GitPython/sessions/4507439b-d7f4-47ab-b89a-5b19d626fe75 |
| jenshnielsen | https://github.com/jenshnielsen |
| November 20, 2026 13:29 | https://github.com/gitpython-developers/GitPython/pull/2350#event-36772928069 |
|
View session
| https://github.com/gitpython-developers/GitPython/sessions/4507439b-d7f4-47ab-b89a-5b19d626fe75 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
|
Nov 20, 2026
| https://github.com/gitpython-developers/GitPython/pull/2350#pullrequestreview-5993463635 |
|
View reviewed changes
| https://github.com/gitpython-developers/GitPython/pull/2350/files/d7fd408817c30b4adbd0bc5e1d75f5051d13f5b2 |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| https://github.com/gitpython-developers/GitPython/pull/2350#pullrequestreview-5993463635 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #686 | https://github.com/gitpython-developers/GitPython/pull/686 |
| Please reload this page | https://github.com/gitpython-developers/GitPython/pull/2350 |
| https://github.com/Byron |
| Byron | https://github.com/Byron |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| November 20, 2026 14:22 | https://github.com/gitpython-developers/GitPython/pull/2350#event-36777732229 |
| started reviewing | https://github.com/gitpython-developers/GitPython/sessions/2a7b6d8d-f4ff-44db-9957-cb7f976a144a |
| Byron | https://github.com/Byron |
| November 20, 2026 14:23 | https://github.com/gitpython-developers/GitPython/pull/2350#event-36777775369 |
|
View session
| https://github.com/gitpython-developers/GitPython/sessions/2a7b6d8d-f4ff-44db-9957-cb7f976a144a |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
|
Nov 20, 2026
| https://github.com/gitpython-developers/GitPython/pull/2350#pullrequestreview-5994294564 |
|
View reviewed changes
| https://github.com/gitpython-developers/GitPython/pull/2350/files/d7fd408817c30b4adbd0bc5e1d75f5051d13f5b2 |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| https://github.com/gitpython-developers/GitPython/pull/2350#pullrequestreview-5994294564 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Assert repository close does not trigger explicit garbage collection | https://github.com/gitpython-developers/GitPython/pull/2350#discussion_r4643674298 |
| Please reload this page | https://github.com/gitpython-developers/GitPython/pull/2350 |
| test/test_index.py | https://github.com/gitpython-developers/GitPython/pull/2350/files/d7fd408817c30b4adbd0bc5e1d75f5051d13f5b2#diff-21c27b991511d3d0e3a14b4dfb56017689de2fa114c3edf11c577bd1ce744b72 |
| Please reload this page | https://github.com/gitpython-developers/GitPython/pull/2350 |
|
| https://github.com/jenshnielsen |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Refactor garbage collection handling in tests | https://github.com/gitpython-developers/GitPython/pull/2350/commits/a8e210b5e443112c13271a13e0434595da05e037 |
| a8e210b | https://github.com/gitpython-developers/GitPython/pull/2350/commits/a8e210b5e443112c13271a13e0434595da05e037 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| November 20, 2026 14:49 | https://github.com/gitpython-developers/GitPython/pull/2350#event-36780219178 |
| started reviewing | https://github.com/gitpython-developers/GitPython/sessions/fade634e-28c7-40c3-8912-22116af9290a |
| jenshnielsen | https://github.com/jenshnielsen |
| November 20, 2026 14:49 | https://github.com/gitpython-developers/GitPython/pull/2350#event-36780268053 |
|
View session
| https://github.com/gitpython-developers/GitPython/sessions/fade634e-28c7-40c3-8912-22116af9290a |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
|
Nov 20, 2026
| https://github.com/gitpython-developers/GitPython/pull/2350#pullrequestreview-5994749077 |
|
View reviewed changes
| https://github.com/gitpython-developers/GitPython/pull/2350/files/a8e210b5e443112c13271a13e0434595da05e037 |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| https://github.com/gitpython-developers/GitPython/pull/2350#pullrequestreview-5994749077 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Assert repository close does not trigger explicit garbage collection | https://github.com/gitpython-developers/GitPython/pull/2350#discussion_r4643674298 |
| Please reload this page | https://github.com/gitpython-developers/GitPython/pull/2350 |
| https://github.com/Byron |
| Byron | https://github.com/Byron |
| Nov 20, 2026 | https://github.com/gitpython-developers/GitPython/pull/2350#issuecomment-7044667713 |
| Please reload this page | https://github.com/gitpython-developers/GitPython/pull/2350 |
| https://github.com/Byron |
| Byron | https://github.com/Byron |
| fe74a6f | https://github.com/gitpython-developers/GitPython/commit/fe74a6ffaaffa1e05f06ff83370725abbb297380 |
| Nov 20, 2026 | https://github.com/gitpython-developers/GitPython/pull/2350#event-36789188127 |
| Please reload this page | https://github.com/gitpython-developers/GitPython/pull/2350 |
| https://github.co/hiddenchars |
| https://github.com/gitpython-developers/GitPython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2350 |
|
Copilot code review
| https://github.com/apps/copilot-pull-request-reviewer |
|
Copilot
| https://github.com/apps/copilot-pull-request-reviewer |
| Learn more about Copilot code review. | https://gh.io/copilot-code-review-docs |
|
| https://github.com/gitpython-developers/GitPython/pull/2350/files/a8e210b5e443112c13271a13e0434595da05e037 |
| Please reload this page | https://github.com/gitpython-developers/GitPython/pull/2350 |
| Please reload this page | https://github.com/gitpython-developers/GitPython/pull/2350 |
|
| https://github.com/jenshnielsen |
|
| https://github.com/Byron |
|
| https://github.com/apps/copilot-pull-request-reviewer |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |