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: 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:eaa1c962-25ea-8b91-8710-58b90ea7bf49 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8796:345820:12D6D72:1A012BA:696A010F |
| html-safe-nonce | ab0cca1fa99d0f56a4ba1c4e923d794763d4112b9e1fc07b87910b0084926695 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Nzk2OjM0NTgyMDoxMkQ2RDcyOjFBMDEyQkE6Njk2QTAxMEYiLCJ2aXNpdG9yX2lkIjoiNDMyMjAzODczODYyODI0NzgyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2f5c3666e4cbb4642348f84678d130d2ce89a50d68231bc6d5d0dd22fd509475 |
| 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 | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width