René's URL Explorer Experiment


Title: Config lookups are case-sensitive, where git's section and variable names are not · Issue #2240 · gitpython-developers/GitPython · GitHub

Open Graph Title: Config lookups are case-sensitive, where git's section and variable names are not · Issue #2240 · gitpython-developers/GitPython

X Title: Config lookups are case-sensitive, where git's section and variable names are not · Issue #2240 · gitpython-developers/GitPython

Description: git matches section names and variable names case-insensitively; only the subsection between quotes is case-sensitive. GitConfigParser matches all three exactly, so a config written with different casing is unreadable through it. Against...

Open Graph Description: git matches section names and variable names case-insensitively; only the subsection between quotes is case-sensitive. GitConfigParser matches all three exactly, so a config written with different ...

X Description: git matches section names and variable names case-insensitively; only the subsection between quotes is case-sensitive. GitConfigParser matches all three exactly, so a config written with different ...

Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/2240

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Config lookups are case-sensitive, where git's section and variable names are not","articleBody":"git matches section names and variable names case-insensitively; only the subsection between quotes is case-sensitive. `GitConfigParser` matches all three exactly, so a config written with different casing is unreadable through it.\n\nAgainst this file:\n\n```ini\n[core]\n\tBigName = 1\n[REMOTE \"Origin\"]\n\turl = u\n```\n\n```\nlookup                      git         GitPython\ncore.BigName                1           1\ncore.bigname                1           NoOptionError\nREMOTE \"Origin\".url         u           u\nremote \"Origin\".url         u           NoSectionError\n```\n\nThe variable half comes from `optionxform` being overridden to identity (`git/config.py:439`):\n\n```python\ndef optionxform(self, optionstr: str) -> str:\n    \"\"\"Do not transform options in any way when writing.\"\"\"\n    return optionstr\n```\n\nThe docstring says \"when writing\", and preserving case on write is right, since git keeps the spelling it was given. The same function decides how lookups are matched though, so reads inherit it.\n\nThis bites when the file was written by something other than GitPython: git itself preserves whatever casing the user typed, and other tools emit `[remote \"x\"]` or `[Remote \"x\"]` interchangeably, so `repo.config_reader().get_value(\"remote \\\"x\\\"\", \"url\")` can raise on a perfectly valid config.\n\nI have not sent a patch because the fix is a behaviour change with more than one shape: case-folding lookups only, or folding on read while keeping the written spelling, and either way `sections()` and `items()` start returning something different from what they return today. Happy to do it if you say which.\n\nUnrelated to #2237, which I filed yesterday about valueless keys, but both are in the same `_read`/lookup path so you may want to look at them together.\n\ngit 2.50.1, GitPython at a9913c7.\n\nAssisted-by: Claude Opus 5 (Claude Code), per the identification rule in CONTRIBUTING.md.","author":{"url":"https://github.com/rawsun007","@type":"Person","name":"rawsun007"},"datePublished":"2026-09-14T02:56:52Z","url":"https://github.com/gitpython-developers/GitPython/issues/2240"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3dc620af-5096-6766-6f3b-6dd51a1c08e5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id857A:29AEE8:D76C61:12021E0:6B0100BA
html-safe-noncec16285a9dc616d4d43721e0140f5296931e601e1913a4f2500dbda175edff0d4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTdBOjI5QUVFODpENzZDNjE6MTIwMjFFMDo2QjAxMDBCQSIsInZpc2l0b3JfaWQiOiIyNDc3NDg1OTU0NDQ5ODY2OTM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca29b6ce78b442ce7426718f00c9f19a2286d4b9dbb44a7200e914fa56808a735
hovercard-subject-tagissue:5444637571
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/2240/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aca7005e75a902697f15988ef2e447392bce14273cf4cf26d9c970722b425fc7/gitpython-developers/GitPython/issues/2240
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aca7005e75a902697f15988ef2e447392bce14273cf4cf26d9c970722b425fc7/gitpython-developers/GitPython/issues/2240
og:image:altgit matches section names and variable names case-insensitively; only the subsection between quotes is case-sensitive. GitConfigParser matches all three exactly, so a config written with different ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerawsun007
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
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-nameissues

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/issues/2240#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fissues%2F2240
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%2Fissues%2F2240
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://github.com/gitpython-developers/GitPython/issues/2240
Reloadhttps://github.com/gitpython-developers/GitPython/issues/2240
Reloadhttps://github.com/gitpython-developers/GitPython/issues/2240
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
New issuehttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/2240
New issuehttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/2240
#2241https://github.com/gitpython-developers/GitPython/pull/2241
Config lookups are case-sensitive, where git's section and variable names are nothttps://github.com/gitpython-developers/GitPython/issues/2240#top
#2241https://github.com/gitpython-developers/GitPython/pull/2241
https://github.com/rawsun007
rawsun007https://github.com/rawsun007
on Sep 14, 2026https://github.com/gitpython-developers/GitPython/issues/2240#issue-5444637571
#2237https://github.com/gitpython-developers/GitPython/issues/2237
a9913c7https://github.com/gitpython-developers/GitPython/commit/a9913c7685af569f6aa933c993d928ae64e3fb3e
Byronhttps://github.com/Byron
on Sep 14, 2026https://github.com/gitpython-developers/GitPython/issues/2240#event-31074821374
test: fix config regression data spelling (#2240)https://github.com/gitpython-developers/GitPython/commit/c4beffeba5cd4926411ff19342f4eb5d631d818a
#2240https://github.com/gitpython-developers/GitPython/issues/2240
c4beffehttps://github.com/gitpython-developers/GitPython/commit/c4beffeba5cd4926411ff19342f4eb5d631d818a
fix: match Git config names case-insensitively (#2240)https://github.com/gitpython-developers/GitPython/commit/fb8a0bd9712a36748c6b70f718e5512569c26923
#2240https://github.com/gitpython-developers/GitPython/issues/2240
fb8a0bdhttps://github.com/gitpython-developers/GitPython/commit/fb8a0bd9712a36748c6b70f718e5512569c26923
Byronhttps://github.com/Byron
completedhttps://github.com/gitpython-developers/GitPython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#2241https://github.com/gitpython-developers/GitPython/pull/2241
on Sep 14, 2026https://github.com/gitpython-developers/GitPython/issues/2240#event-31078504074
Sign up for freehttps://github.com/signup?return_to=https://github.com/gitpython-developers/GitPython/issues/2240
Sign in to commenthttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/2240
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.