Title: Fix GitConfigParser ignoring multiple [include] path entries by daniel7an · Pull Request #2100 · gitpython-developers/GitPython · GitHub
Open Graph Title: Fix GitConfigParser ignoring multiple [include] path entries by daniel7an · Pull Request #2100 · gitpython-developers/GitPython
X Title: Fix GitConfigParser ignoring multiple [include] path entries by daniel7an · Pull Request #2100 · gitpython-developers/GitPython
Description: Problem When an [include] section has multiple entries with the same key (e.g. multiple path values), only the last one was respected: [include] path = ~/.config/git/maintenance.config path = ~/.config/git/my-config Only my-config would be included. This is valid git config per git help config: These variables can be given multiple times. Root Cause _included_paths() used self.items(section) which delegates to _OMD.items(). The _OMD.__getitem__ method returns only the last value for a given key, so duplicate keys (like multiple path entries) were lost. Fix Use _OMD.items_all() to retrieve all values for each key in include/includeIf sections, ensuring every path is processed. Test Added test_multiple_include_paths_with_same_key that creates a config with two path entries under a single [include] section and verifies both included files are loaded. Fixes #2099
Open Graph Description: Problem When an [include] section has multiple entries with the same key (e.g. multiple path values), only the last one was respected: [include] path = ~/.config/git/maintenance.config path...
X Description: Problem When an [include] section has multiple entries with the same key (e.g. multiple path values), only the last one was respected: [include] path = ~/.config/git/maintenance.config path...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2100
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:fd4fdbe8-81ad-e1fe-ae97-c9cd6d151ab7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EA5C:3FE40B:1F445B4:2B990C4:6A55F506 |
| html-safe-nonce | dc81275d5c4c09e6d6ca750ef2f63219d1457c8d7c575282e35544c1c4e1452b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTVDOjNGRTQwQjoxRjQ0NUI0OjJCOTkwQzQ6NkE1NUY1MDYiLCJ2aXNpdG9yX2lkIjoiNjA0OTk4NjI5NjA4ODQ5MTI3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7cd8e87522f531129eac90f57d42276a40cf3e0bce1001e6af75ba7e6ebe6d16 |
| hovercard-subject-tag | pull_request:3264190018 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/2100/files |
| twitter:image | https://avatars.githubusercontent.com/u/82312728?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/82312728?s=400&v=4 |
| og:image:alt | Problem When an [include] section has multiple entries with the same key (e.g. multiple path values), only the last one was respected: [include] path = ~/.config/git/maintenance.config path... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3725c7f9b2a6e3a27ef57c5aed13428c0f65e045 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width