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:baf9b5bb-0116-096b-52f2-c065162b8b08
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBCBA:3C21B:F86979:13FD2E3:6B00FF6D
html-safe-nonce848ee85cc33055913cd87501d7b134cac236bc1b33f54c8545750d2c89b90960
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0JBOjNDMjFCOkY4Njk3OToxM0ZEMkUzOjZCMDBGRjZEIiwidmlzaXRvcl9pZCI6IjYxODY5MjcxNzA4MDQzMTgwNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace78226c246878af296ac7b5b8a2611e05c7cc668fc817e176cd138ffbe9e4ca9
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
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttp://github.com/gitpython-developers/GitPython/pull/2350#start-of-content
http://github.com/
Sign inhttp://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 inhttp://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2350
Sign uphttp://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
Reloadhttp://github.com/gitpython-developers/GitPython/pull/2350
Reloadhttp://github.com/gitpython-developers/GitPython/pull/2350
Reloadhttp://github.com/gitpython-developers/GitPython/pull/2350
gitpython-developershttp://github.com/gitpython-developers
GitPythonhttp://github.com/gitpython-developers/GitPython
Codehttp://github.com/gitpython-developers/GitPython
Issues1 (1)http://github.com/gitpython-developers/GitPython/issues
Pull requestshttp://github.com/gitpython-developers/GitPython/pulls
Discussionshttp://github.com/gitpython-developers/GitPython/discussions
Actionshttp://github.com/gitpython-developers/GitPython/actions
Security and quality42 (42)http://github.com/gitpython-developers/GitPython/security
Insightshttp://github.com/gitpython-developers/GitPython/insights
http://github.com/gitpython-developers/GitPython
Byronhttp://github.com/Byron
gitpython-developers:mainhttp://github.com/gitpython-developers/GitPython/tree/main
jenshnielsen:jenshnielsen/agents/gitpython-repo-close-gc-optimizationhttp://github.com/jenshnielsen/GitPython/tree/jenshnielsen/agents/gitpython-repo-close-gc-optimization
Conversationhttp://github.com/gitpython-developers/GitPython/pull/2350
Commits3 (3)http://github.com/gitpython-developers/GitPython/pull/2350/commits
Checkshttp://github.com/gitpython-developers/GitPython/pull/2350/checks
Files changedhttp://github.com/gitpython-developers/GitPython/pull/2350/files
Fix reference cycle in IndexFile._raise_exc and remove gc.collect()http://github.com/gitpython-developers/GitPython/pull/2350#top
Byronhttp://github.com/Byron
gitpython-developers:mainhttp://github.com/gitpython-developers/GitPython/tree/main
jenshnielsen:jenshnielsen/agents/gitpython-repo-close-gc-optimizationhttp://github.com/jenshnielsen/GitPython/tree/jenshnielsen/agents/gitpython-repo-close-gc-optimization
http://github.com/jenshnielsen
jenshnielsenhttp://github.com/jenshnielsen
Nov 20, 2026http://github.com/gitpython-developers/GitPython/pull/2350#issue-6512353617
#686https://github.com/gitpython-developers/GitPython/pull/686
Please reload this pagehttp://github.com/gitpython-developers/GitPython/pull/2350
jenshnielsenhttp://github.com/jenshnielsen
November 20, 2026 12:59http://github.com/gitpython-developers/GitPython/pull/2350#commits-pushed-2d2570b
http://github.com/jenshnielsen
http://github.com/apps/github-copilot-cli
fix(index): don't keep the repository alive after IndexFile.add()http://github.com/gitpython-developers/GitPython/pull/2350/commits/2d2570b45685358550916380142244c790b03948
2d2570bhttp://github.com/gitpython-developers/GitPython/pull/2350/commits/2d2570b45685358550916380142244c790b03948
http://github.com/jenshnielsen
http://github.com/apps/github-copilot-cli
perf(repo): stop forcing garbage collections in Repo.close()http://github.com/gitpython-developers/GitPython/pull/2350/commits/d7fd408817c30b4adbd0bc5e1d75f5051d13f5b2
d7fd408http://github.com/gitpython-developers/GitPython/pull/2350/commits/d7fd408817c30b4adbd0bc5e1d75f5051d13f5b2
http://github.com/apps/copilot-pull-request-reviewer
Copilothttp://github.com/apps/copilot-pull-request-reviewer
November 20, 2026 13:28http://github.com/gitpython-developers/GitPython/pull/2350#event-36772834971
started reviewinghttps://github.com/gitpython-developers/GitPython/sessions/4507439b-d7f4-47ab-b89a-5b19d626fe75
jenshnielsenhttp://github.com/jenshnielsen
November 20, 2026 13:29http://github.com/gitpython-developers/GitPython/pull/2350#event-36772928069
View session https://github.com/gitpython-developers/GitPython/sessions/4507439b-d7f4-47ab-b89a-5b19d626fe75
http://github.com/apps/copilot-pull-request-reviewer
Copilothttp://github.com/apps/copilot-pull-request-reviewer
Nov 20, 2026 http://github.com/gitpython-developers/GitPython/pull/2350#pullrequestreview-5993463635
View reviewed changes http://github.com/gitpython-developers/GitPython/pull/2350/files/d7fd408817c30b4adbd0bc5e1d75f5051d13f5b2
Copilothttp://github.com/apps/copilot-pull-request-reviewer
http://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 pagehttp://github.com/gitpython-developers/GitPython/pull/2350
http://github.com/Byron
Byronhttp://github.com/Byron
Copilothttp://github.com/apps/copilot-pull-request-reviewer
November 20, 2026 14:22http://github.com/gitpython-developers/GitPython/pull/2350#event-36777732229
started reviewinghttps://github.com/gitpython-developers/GitPython/sessions/2a7b6d8d-f4ff-44db-9957-cb7f976a144a
Byronhttp://github.com/Byron
November 20, 2026 14:23http://github.com/gitpython-developers/GitPython/pull/2350#event-36777775369
View session https://github.com/gitpython-developers/GitPython/sessions/2a7b6d8d-f4ff-44db-9957-cb7f976a144a
http://github.com/apps/copilot-pull-request-reviewer
Copilothttp://github.com/apps/copilot-pull-request-reviewer
Nov 20, 2026 http://github.com/gitpython-developers/GitPython/pull/2350#pullrequestreview-5994294564
View reviewed changes http://github.com/gitpython-developers/GitPython/pull/2350/files/d7fd408817c30b4adbd0bc5e1d75f5051d13f5b2
Copilothttp://github.com/apps/copilot-pull-request-reviewer
http://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 pagehttp://github.com/gitpython-developers/GitPython/pull/2350
test/test_index.pyhttp://github.com/gitpython-developers/GitPython/pull/2350/files/d7fd408817c30b4adbd0bc5e1d75f5051d13f5b2#diff-21c27b991511d3d0e3a14b4dfb56017689de2fa114c3edf11c577bd1ce744b72
Please reload this pagehttp://github.com/gitpython-developers/GitPython/pull/2350
http://github.com/jenshnielsen
http://github.com/apps/copilot-pull-request-reviewer
Refactor garbage collection handling in testshttp://github.com/gitpython-developers/GitPython/pull/2350/commits/a8e210b5e443112c13271a13e0434595da05e037
a8e210bhttp://github.com/gitpython-developers/GitPython/pull/2350/commits/a8e210b5e443112c13271a13e0434595da05e037
http://github.com/apps/copilot-pull-request-reviewer
Copilothttp://github.com/apps/copilot-pull-request-reviewer
November 20, 2026 14:49http://github.com/gitpython-developers/GitPython/pull/2350#event-36780219178
started reviewinghttps://github.com/gitpython-developers/GitPython/sessions/fade634e-28c7-40c3-8912-22116af9290a
jenshnielsenhttp://github.com/jenshnielsen
November 20, 2026 14:49http://github.com/gitpython-developers/GitPython/pull/2350#event-36780268053
View session https://github.com/gitpython-developers/GitPython/sessions/fade634e-28c7-40c3-8912-22116af9290a
http://github.com/apps/copilot-pull-request-reviewer
Copilothttp://github.com/apps/copilot-pull-request-reviewer
Nov 20, 2026 http://github.com/gitpython-developers/GitPython/pull/2350#pullrequestreview-5994749077
View reviewed changes http://github.com/gitpython-developers/GitPython/pull/2350/files/a8e210b5e443112c13271a13e0434595da05e037
Copilothttp://github.com/apps/copilot-pull-request-reviewer
http://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 pagehttp://github.com/gitpython-developers/GitPython/pull/2350
http://github.com/Byron
Byronhttp://github.com/Byron
Nov 20, 2026http://github.com/gitpython-developers/GitPython/pull/2350#issuecomment-7044667713
Please reload this pagehttp://github.com/gitpython-developers/GitPython/pull/2350
http://github.com/Byron
Byronhttp://github.com/Byron
fe74a6fhttp://github.com/gitpython-developers/GitPython/commit/fe74a6ffaaffa1e05f06ff83370725abbb297380
Nov 20, 2026https://github.com/gitpython-developers/GitPython/pull/2350#event-36789188127
Please reload this pagehttp://github.com/gitpython-developers/GitPython/pull/2350
https://github.co/hiddenchars
http://github.com/gitpython-developers/GitPython/pull/{{ revealButtonHref }}
Sign up for freehttp://github.com/join?source=comment-repo
Sign in to commenthttp://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2350
Copilot code review http://github.com/apps/copilot-pull-request-reviewer
Copilot http://github.com/apps/copilot-pull-request-reviewer
Learn more about Copilot code review.https://gh.io/copilot-code-review-docs
http://github.com/gitpython-developers/GitPython/pull/2350/files/a8e210b5e443112c13271a13e0434595da05e037
Please reload this pagehttp://github.com/gitpython-developers/GitPython/pull/2350
Please reload this pagehttp://github.com/gitpython-developers/GitPython/pull/2350
http://github.com/jenshnielsen
http://github.com/Byron
http://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.