Title: GitConfigParser().get_values() does not load sections properly. · Issue #1534 · gitpython-developers/GitPython · GitHub
Open Graph Title: GitConfigParser().get_values() does not load sections properly. · Issue #1534 · gitpython-developers/GitPython
X Title: GitConfigParser().get_values() does not load sections properly. · Issue #1534 · gitpython-developers/GitPython
Description: To replicate this bug, first do the following in your CLI git config --global --add safe.directory /some/directory/here Then run this python script from git import GitConfigParser from git.config import get_config_path config = GitConfig...
Open Graph Description: To replicate this bug, first do the following in your CLI git config --global --add safe.directory /some/directory/here Then run this python script from git import GitConfigParser from git.config i...
X Description: To replicate this bug, first do the following in your CLI git config --global --add safe.directory /some/directory/here Then run this python script from git import GitConfigParser from git.config i...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1534
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"GitConfigParser().get_values() does not load sections properly.","articleBody":"To replicate this bug, first do the following in your CLI\r\n\r\n```\r\ngit config --global --add safe.directory /some/directory/here\r\n```\r\nThen run this python script\r\n```\r\nfrom git import GitConfigParser\r\nfrom git.config import get_config_path\r\n\r\nconfig = GitConfigParser(get_config_path(\"global\"), read_only=False)\r\nconfig.get_values(\"safe\", \"directory\") # This throws a KeyError\r\n```\r\nThere is a workaround:\r\n```\r\nconfig.get_value(\"safe\", \"directory\")\r\nconfig.get_values(\"safe\", \"directory\") # This works\r\n```\r\n\r\nI will be taking a look at the code to see if I can submit a PR for this.\r\n","author":{"url":"https://github.com/kf-novi","@type":"Person","name":"kf-novi"},"datePublished":"2023-01-10T18:54:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1534/GitPython/issues/1534"}
| 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:8b425691-79b9-4333-8fd6-7a4e4fa227ac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98D6:18DE9:DB82F5:1331F76:69820C3C |
| html-safe-nonce | d0b1029bc7f46aa54508d87060a92296499c0327dd81590358fe6539922939ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEQ2OjE4REU5OkRCODJGNToxMzMxRjc2OjY5ODIwQzNDIiwidmlzaXRvcl9pZCI6IjMzODI4MDMzOTc1NzYxMDA5MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5b84861956223719a36aba900e50d166d66df48b8fcb4b9d219aff2db32f32eb |
| hovercard-subject-tag | issue:1527859682 |
| 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/1534/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7d5e157216b1f5df13d13a83f2e0711356a7feaf62862417ef056ac4f56af599/gitpython-developers/GitPython/issues/1534 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7d5e157216b1f5df13d13a83f2e0711356a7feaf62862417ef056ac4f56af599/gitpython-developers/GitPython/issues/1534 |
| og:image:alt | To replicate this bug, first do the following in your CLI git config --global --add safe.directory /some/directory/here Then run this python script from git import GitConfigParser from git.config i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kf-novi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d53e73daff0fc9f0668e1e0628f2f5fa83e1e7e674b56f246f2f1c9ee32b15f |
| 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 | d5cf820dd454dbac0c84a97275f8ce4b224eba3a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width