Title: Parsing error on git config · Issue #112 · gitpython-developers/GitPython · GitHub
Open Graph Title: Parsing error on git config · Issue #112 · gitpython-developers/GitPython
X Title: Parsing error on git config · Issue #112 · gitpython-developers/GitPython
Description: The error is below, doing a config.get_value("user", "name") File "python-client/client.py", line 53, in
Open Graph Description: The error is below, doing a config.get_value("user", "name") File "python-client/client.py", line 53, in
X Description: The error is below, doing a config.get_value("user", "name") File "python-client/client.py", line 53, in <module> main() File "python-client/client.py"...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/112
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parsing error on git config","articleBody":"The error is below, doing a `config.get_value(\"user\", \"name\")`\n\n```\nFile \"python-client/client.py\", line 53, in \u003cmodule\u003e\nmain()\nFile \"python-client/client.py\", line 19, in main\nuser_info = githelpers.get_computer_info()[\"user\"]\nFile \"/home/sagar/dev/meteor/live-git/python-client/githelpers.py\", line 35, in get_computer_info\nuser_name = config.get_value(\"user\", \"name\")\nFile \"/usr/local/lib/python2.7/dist-packages/git/config.py\", line 379, in get_value\nvaluestr = self.get(section, option)\nFile \"/usr/local/lib/python2.7/dist-packages/git/config.py\", line 52, in assure_data_present\nself.read()\nFile \"/usr/local/lib/python2.7/dist-packages/git/config.py\", line 291, in read\nself._read(fp, fp.name)\nFile \"/usr/local/lib/python2.7/dist-packages/git/config.py\", line 262, in _read\nraise e\nConfigParser.ParsingError: File contains parsing errors: /home/sagar/.gitconfig\n[line 149]: '\\t\\tend\\\\n\\\\\\n'\n[line 150]: '\\t\\tFile.open(%(%A), %(w)) {|f| f.write(b)}\\\\n\\\\\\n'\n[line 151]: '\\t\\texit 1 if b.include?(%(\u003c)*%L)\\'\"\\n'\n```\n\nIt happens on this .gitconfig after line 142. If you remove those parts, then it works fine.\n\nhttps://github.com/cjhveal/dotfiles/blob/master/git/gitconfig.symlink\n","author":{"url":"https://github.com/louisrli","@type":"Person","name":"louisrli"},"datePublished":"2013-06-30T05:08:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/112/GitPython/issues/112"}
| 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:e0b0c781-219e-57ed-07a6-8cea7ef4266b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8872:30FCC9:A812A3:E6F595:69695A12 |
| html-safe-nonce | 0854090c1724416735f82caaadd40764367dc7ab6578bca318b05382654310f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODcyOjMwRkNDOTpBODEyQTM6RTZGNTk1OjY5Njk1QTEyIiwidmlzaXRvcl9pZCI6IjMyNjgwMDc0NjQ0NDIzNTQxOTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 08fa626cccdfa40ccc391e3ac9591fe340442268cea936d795f3aadd6eb762ff |
| hovercard-subject-tag | issue:16184013 |
| 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/112/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2bbfd573c3d1416e2422d224ddde8c317ae5172f7609b791138a6b79fd973432/gitpython-developers/GitPython/issues/112 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2bbfd573c3d1416e2422d224ddde8c317ae5172f7609b791138a6b79fd973432/gitpython-developers/GitPython/issues/112 |
| og:image:alt | The error is below, doing a config.get_value("user", "name") File "python-client/client.py", line 53, in |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | louisrli |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9db5f28da7e24035385d7f349f17890cbe016a939ddd7952be0f07b862094f5a |
| 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 | 4e59fe66217d3c72925af2a341ae3a8f2b5b5b2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width