Title: Config reader does not support includeIf · Issue #1053 · gitpython-developers/GitPython · GitHub
Open Graph Title: Config reader does not support includeIf · Issue #1053 · gitpython-developers/GitPython
X Title: Config reader does not support includeIf · Issue #1053 · gitpython-developers/GitPython
Description: If the .gitconfig file includes an includeIf directive, the config parser doesn't respect it. ~/.gitconfig file contents: [includeIf "gitdir:~/work/git/"] path = ~/.gitconfig.work [user] email = my@email.com name = Me useconfigonly = tru...
Open Graph Description: If the .gitconfig file includes an includeIf directive, the config parser doesn't respect it. ~/.gitconfig file contents: [includeIf "gitdir:~/work/git/"] path = ~/.gitconfig.work [user] email = my...
X Description: If the .gitconfig file includes an includeIf directive, the config parser doesn't respect it. ~/.gitconfig file contents: [includeIf "gitdir:~/work/git/"] path = ~/.gitconfig.work [us...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1053
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Config reader does not support includeIf","articleBody":"If the `.gitconfig` file includes an `includeIf` directive, the config parser doesn't respect it.\r\n\r\n`~/.gitconfig` file contents:\r\n\r\n```\r\n[includeIf \"gitdir:~/work/git/\"]\r\n path = ~/.gitconfig.work\r\n\r\n[user]\r\n email = my@email.com\r\n name = Me\r\n useconfigonly = true\r\n```\r\n\r\n`~/.gitconfig.work` contents\r\n\r\n```\r\n[user]\r\n email: work@email.com\r\n name = Work\r\n```\r\n\r\nChange to the `~/work/git/project` directory and run `git config -l` and notice that the name is set to `Work`. Running the following in a Python REPL\r\n\r\n```\r\nimport os\r\nfrom git import Repo\r\nrepo = Repo(os.getcwd())\r\nrepo.repo.config_reader().get_value(\"user\", \"name\")\r\n'Me'\r\n```\r\nAnd if the user hasn't got a default user setting in the `~/gitconfig` file, it will throw `ConfigParser.NoSectionError: No section: 'user'` which is expected.\r\n\r\nConfig parser should support the `includeIf` directive in the config file.","author":{"url":"https://github.com/Svenito","@type":"Person","name":"Svenito"},"datePublished":"2020-09-02T08:52:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1053/GitPython/issues/1053"}
| 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:a252cc4f-7ea9-4f9b-a5aa-ce90d59586bd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E66:34E8DF:48EACC:668772:696A0CEB |
| html-safe-nonce | 13b2a7fba3b5911f41736c6ea2991a1c8b04baabb152ff64bf71ab7569158bfc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTY2OjM0RThERjo0OEVBQ0M6NjY4NzcyOjY5NkEwQ0VCIiwidmlzaXRvcl9pZCI6IjMxMTA2NjQ5MTk1NTYxNjQ4NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | eba00cd89e181e1890bb3712a8d2e8aea8d7f2cb3bfb92980ff9e5f6c57275ca |
| hovercard-subject-tag | issue:690842275 |
| 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/1053/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e7858036554cde98af40d899062899ed53696ec3b0d9605cbfd2e7a7c4042d6d/gitpython-developers/GitPython/issues/1053 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e7858036554cde98af40d899062899ed53696ec3b0d9605cbfd2e7a7c4042d6d/gitpython-developers/GitPython/issues/1053 |
| og:image:alt | If the .gitconfig file includes an includeIf directive, the config parser doesn't respect it. ~/.gitconfig file contents: [includeIf "gitdir:~/work/git/"] path = ~/.gitconfig.work [user] email = my... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Svenito |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width