Title: Relative path include in .gitconfig throws AssertionError · Issue #2103 · gitpython-developers/GitPython · GitHub
Open Graph Title: Relative path include in .gitconfig throws AssertionError · Issue #2103 · gitpython-developers/GitPython
X Title: Relative path include in .gitconfig throws AssertionError · Issue #2103 · gitpython-developers/GitPython
Description: My .gitconfig contains: [include] path = .gitconfig_common According to the Git documentation, this is allowed to be a relative path: If the value of the variable is a relative path, the path is considered to be relative to the configura...
Open Graph Description: My .gitconfig contains: [include] path = .gitconfig_common According to the Git documentation, this is allowed to be a relative path: If the value of the variable is a relative path, the path is co...
X Description: My .gitconfig contains: [include] path = .gitconfig_common According to the Git documentation, this is allowed to be a relative path: If the value of the variable is a relative path, the path is co...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/2103
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Relative path include in .gitconfig throws AssertionError","articleBody":"My `.gitconfig` contains:\n\n```\n[include]\n path = .gitconfig_common\n```\n\nAccording to the [Git documentation](https://git-scm.com/docs/git-config#_includes), this is allowed to be a _relative path_:\n\n\u003e If the value of the variable is a relative path, the path is considered to be relative to the configuration file in which the include directive was found.\n\nHowever, GitPython throws:\n\n```\n File \"/Users/daniel/.cache/uv/archive-v0/YvUvYFO1C0vkI8VZmPICW/lib/python3.12/site-packages/briefcase/commands/base.py\", line 1365, in get_git_config_value\n if git_config.has_option(section, option):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/daniel/.cache/uv/archive-v0/YvUvYFO1C0vkI8VZmPICW/lib/python3.12/site-packages/git/config.py\", line 113, in assure_data_present\n self.read()\n File \"/Users/daniel/.cache/uv/archive-v0/YvUvYFO1C0vkI8VZmPICW/lib/python3.12/site-packages/git/config.py\", line 654, in read\n assert osp.isabs(file_path), \"Need absolute paths to be sure our cycle checks will work\"\n ^^^^^^^^^^^^^^^^^^^^\nAssertionError: Need absolute paths to be sure our cycle checks will work\n```\n\nThe workaround is to modify my `.gitconfig` and make the path absolute, but I'd like it to work without modifying my `.gitconfig` to suit GitPython.","author":{"url":"https://github.com/Virtlink","@type":"Person","name":"Virtlink"},"datePublished":"2026-02-24T13:18:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2103/GitPython/issues/2103"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:11244442-929f-b1b4-1656-6bf2742ad62c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B4D4:2CEF6D:2F2344A:43AAF3F:6A567CCA |
| html-safe-nonce | 2138af6bea7a582e403569a6166b4a7168fab8fe8055937bcf8f744dcb4a0c68 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEQ0OjJDRUY2RDoyRjIzNDRBOjQzQUFGM0Y6NkE1NjdDQ0EiLCJ2aXNpdG9yX2lkIjoiODA1OTE0NDQwMTk5MjQ0OTIyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 76bf5594d957622921cc87d3d0f01b6af8854c263b0201f28555cc307ceb6ac4 |
| hovercard-subject-tag | issue:3983693068 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/gitpython-developers/GitPython/2103/issue_layout |
| twitter:image | https://opengraph.githubassets.com/41707e4908a438e4656505410b8fe79f59c23be0b2cb3222572bffdcbabef30b/gitpython-developers/GitPython/issues/2103 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/41707e4908a438e4656505410b8fe79f59c23be0b2cb3222572bffdcbabef30b/gitpython-developers/GitPython/issues/2103 |
| og:image:alt | My .gitconfig contains: [include] path = .gitconfig_common According to the Git documentation, this is allowed to be a relative path: If the value of the variable is a relative path, the path is co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Virtlink |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19b5ee9431dcfce15ab4b001d626e4e3a6ba1acb7be814813a52bbebd9a86ef5 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fc131753d059926755b1ab26f13a2c96a692f5d7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width