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: redirect.github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:622aceab-edc1-216c-c60d-14a8ff2c6382 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 844A:31B224:519262:6EC616:6A5555E4 |
| html-safe-nonce | eb321980507184a69f04619edfc8fd154af40d72e09db5b2e5f243b95eef343b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDRBOjMxQjIyNDo1MTkyNjI6NkVDNjE2OjZBNTU1NUU0IiwidmlzaXRvcl9pZCI6IjQ0NTIzMDQ3NDg4Mzg5OTk1MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f20edbe7582a805e7df4234a5b6ded9d8ff5f9b278c0a8ebdcceb9be7ba5df21 |
| 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 | 73595e82546ca2415571a2031890ab16ecb3001a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width