René's URL Explorer Experiment


Title: Fix reference cycle in IndexFile._raise_exc and remove gc.collect() by jenshnielsen · Pull Request #2350 · gitpython-developers/GitPython · GitHub

Open Graph Title: Fix reference cycle in IndexFile._raise_exc and remove gc.collect() by jenshnielsen · Pull Request #2350 · gitpython-developers/GitPython

X Title: Fix reference cycle in IndexFile._raise_exc and remove gc.collect() by jenshnielsen · Pull Request #2350 · gitpython-developers/GitPython

Description: GitPython is a python library used to interact with Git repositories. - Fix reference cycle in IndexFile._raise_exc and remove gc.collect() by jenshnielsen · Pull Request #2350 · gitpython-developers/GitPython

Open Graph Description: 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...

X Description: 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...

Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2350

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:293b5b77-8b5d-cc61-7f4b-7f80488ac0a5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id83CC:2B7BDC:5C3278:7A97FA:6B00A852
html-safe-nonce9f4a349de4dbb652a4de53901b6e8b523fbb8be9b72eb6f211b9a6791c95ee73
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0NDOjJCN0JEQzo1QzMyNzg6N0E5N0ZBOjZCMDBBODUyIiwidmlzaXRvcl9pZCI6IjExODU2MTQxNTMyMTQxMDk3NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac15eaf1fbea4e39d043ecbdb9c481ec62c2ad334ee6fa37a19aab56e64982fc2f
hovercard-subject-tagpull_request:5414119801
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/gitpython-developers/GitPython/2350/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/75357d4cf6ceeeb18a12ef68c9f570d14169e6503267ad44505a351225254d9d/gitpython-developers/GitPython/pull/2350
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/75357d4cf6ceeeb18a12ef68c9f570d14169e6503267ad44505a351225254d9d/gitpython-developers/GitPython/pull/2350
og:image:altDisclaimer: 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejenshnielsen
hostnamegithub.com
expected-hostnamegithub.com
None455b493e3402a3a3a06beac5d20bb7db3da060808b220aa48d6a7eca7c59863a
turbo-cache-controlno-cache
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2f575159976167242d488c0b062eb355c4e198b7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/pull/2350#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2350
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2350
Sign uphttps://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
Reloadhttps://github.com/gitpython-developers/GitPython/pull/2350
Reloadhttps://github.com/gitpython-developers/GitPython/pull/2350
Reloadhttps://github.com/gitpython-developers/GitPython/pull/2350
gitpython-developershttps://github.com/gitpython-developers
GitPythonhttps://github.com/gitpython-developers/GitPython
Codehttps://github.com/gitpython-developers/GitPython
Issues1 (1)https://github.com/gitpython-developers/GitPython/issues
Pull requestshttps://github.com/gitpython-developers/GitPython/pulls
Discussionshttps://github.com/gitpython-developers/GitPython/discussions
Actionshttps://github.com/gitpython-developers/GitPython/actions
Security and quality42 (42)https://github.com/gitpython-developers/GitPython/security
Insightshttps://github.com/gitpython-developers/GitPython/insights
https://github.com/gitpython-developers/GitPython
Byronhttps://github.com/Byron
gitpython-developers:mainhttps://github.com/gitpython-developers/GitPython/tree/main
jenshnielsen:jenshnielsen/agents/gitpython-repo-close-gc-optimizationhttps://github.com/jenshnielsen/GitPython/tree/jenshnielsen/agents/gitpython-repo-close-gc-optimization
Conversationhttps://github.com/gitpython-developers/GitPython/pull/2350
Commits3 (3)https://github.com/gitpython-developers/GitPython/pull/2350/commits
Checkshttps://github.com/gitpython-developers/GitPython/pull/2350/checks
Files changedhttps://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
Byronhttps://github.com/Byron
gitpython-developers:mainhttps://github.com/gitpython-developers/GitPython/tree/main
jenshnielsen:jenshnielsen/agents/gitpython-repo-close-gc-optimizationhttps://github.com/jenshnielsen/GitPython/tree/jenshnielsen/agents/gitpython-repo-close-gc-optimization
https://github.com/jenshnielsen
jenshnielsenhttps://github.com/jenshnielsen
Nov 20, 2026https://github.com/gitpython-developers/GitPython/pull/2350#issue-6512353617
#686https://github.com/gitpython-developers/GitPython/pull/686
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2350
jenshnielsenhttps://github.com/jenshnielsen
November 20, 2026 12:59https://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
2d2570bhttps://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
d7fd408https://github.com/gitpython-developers/GitPython/pull/2350/commits/d7fd408817c30b4adbd0bc5e1d75f5051d13f5b2
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
November 20, 2026 13:28https://github.com/gitpython-developers/GitPython/pull/2350#event-36772834971
started reviewinghttps://github.com/gitpython-developers/GitPython/sessions/4507439b-d7f4-47ab-b89a-5b19d626fe75
jenshnielsenhttps://github.com/jenshnielsen
November 20, 2026 13:29https://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
Copilothttps://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
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/gitpython-developers/GitPython/pull/2350#pullrequestreview-5993463635
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#686https://github.com/gitpython-developers/GitPython/pull/686
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2350
https://github.com/Byron
Byronhttps://github.com/Byron
Copilothttps://github.com/apps/copilot-pull-request-reviewer
November 20, 2026 14:22https://github.com/gitpython-developers/GitPython/pull/2350#event-36777732229
started reviewinghttps://github.com/gitpython-developers/GitPython/sessions/2a7b6d8d-f4ff-44db-9957-cb7f976a144a
Byronhttps://github.com/Byron
November 20, 2026 14:23https://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
Copilothttps://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
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/gitpython-developers/GitPython/pull/2350#pullrequestreview-5994294564
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Assert repository close does not trigger explicit garbage collectionhttps://github.com/gitpython-developers/GitPython/pull/2350#discussion_r4643674298
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2350
test/test_index.pyhttps://github.com/gitpython-developers/GitPython/pull/2350/files/d7fd408817c30b4adbd0bc5e1d75f5051d13f5b2#diff-21c27b991511d3d0e3a14b4dfb56017689de2fa114c3edf11c577bd1ce744b72
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2350
https://github.com/jenshnielsen
https://github.com/apps/copilot-pull-request-reviewer
Refactor garbage collection handling in testshttps://github.com/gitpython-developers/GitPython/pull/2350/commits/a8e210b5e443112c13271a13e0434595da05e037
a8e210bhttps://github.com/gitpython-developers/GitPython/pull/2350/commits/a8e210b5e443112c13271a13e0434595da05e037
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
November 20, 2026 14:49https://github.com/gitpython-developers/GitPython/pull/2350#event-36780219178
started reviewinghttps://github.com/gitpython-developers/GitPython/sessions/fade634e-28c7-40c3-8912-22116af9290a
jenshnielsenhttps://github.com/jenshnielsen
November 20, 2026 14:49https://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
Copilothttps://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
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/gitpython-developers/GitPython/pull/2350#pullrequestreview-5994749077
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Assert repository close does not trigger explicit garbage collectionhttps://github.com/gitpython-developers/GitPython/pull/2350#discussion_r4643674298
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2350
https://github.com/Byron
Byronhttps://github.com/Byron
Nov 20, 2026https://github.com/gitpython-developers/GitPython/pull/2350#issuecomment-7044667713
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2350
https://github.com/Byron
Byronhttps://github.com/Byron
fe74a6fhttps://github.com/gitpython-developers/GitPython/commit/fe74a6ffaaffa1e05f06ff83370725abbb297380
Nov 20, 2026https://github.com/gitpython-developers/GitPython/pull/2350#event-36789188127
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2350
https://github.co/hiddenchars
https://github.com/gitpython-developers/GitPython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://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 pagehttps://github.com/gitpython-developers/GitPython/pull/2350
Please reload this pagehttps://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
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.