Title: Allow relative config paths with includes by Byron · Pull Request #2169 · gitpython-developers/GitPython · GitHub
Open Graph Title: Allow relative config paths with includes by Byron · Pull Request #2169 · gitpython-developers/GitPython
X Title: Allow relative config paths with includes by Byron · Pull Request #2169 · gitpython-developers/GitPython
Description: Tasks This section is for Byron only. Models continuing this PR must not add, remove, check, uncheck, rename, or reorder checkboxes here. refackiew Everything below this line was generated by GPT-5. Created by Codex on behalf of Byron. Byron will review before this is ready to merge. Summary GitPython already supports relative include paths, but raised an AssertionError when the top-level configuration file was itself passed as a relative path. Normalize path-based parser inputs before reading so relative includes resolve against their containing config file and cycle detection uses consistent absolute paths. Fixes #2103 Git behavior reference This matches Git documentation and the relative and chained-relative include cases in t/t1305-config-include.sh. Validation uv run pytest -q test/test_config.py (31 passed, 1 skipped) uv run pre-commit run --files git/config.py test/test_config.py uv run mypy git/config.py git diff --check Full suite: 631 passed, 75 skipped, 34 unrelated environment failures due to uninitialized nested submodules and a missing legacy master branch
Open Graph Description: Tasks This section is for Byron only. Models continuing this PR must not add, remove, check, uncheck, rename, or reorder checkboxes here. refackiew Everything below this line was generated by G...
X Description: Tasks This section is for Byron only. Models continuing this PR must not add, remove, check, uncheck, rename, or reorder checkboxes here. refackiew Everything below this line was generated by G...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2169
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a73a5718-d887-619f-6934-6de675aacd53 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9708:C0217:841D42:B98645:6A587CED |
| html-safe-nonce | 5e362736e807085d07eb9dfcffc0a6f78205306c1f28de37f784e58066b51f15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzA4OkMwMjE3Ojg0MUQ0MjpCOTg2NDU6NkE1ODdDRUQiLCJ2aXNpdG9yX2lkIjoiNjc0NDA1MjgwOTI1ODc5NDIyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b540ef9d38e7d8df1e0f05f21e612784bb4e77b807a8442e68065afa927fd2aa |
| hovercard-subject-tag | pull_request:4038942768 |
| 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/2169/files |
| twitter:image | https://avatars.githubusercontent.com/u/63622?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/63622?s=400&v=4 |
| og:image:alt | Tasks This section is for Byron only. Models continuing this PR must not add, remove, check, uncheck, rename, or reorder checkboxes here. refackiew Everything below this line was generated by G... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 7d699f0c51c1f58938601870a21967b74eaad94d |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width