Title: Unicode characters in branch name · Issue #774 · gitpython-developers/GitPython · GitHub
Open Graph Title: Unicode characters in branch name · Issue #774 · gitpython-developers/GitPython
X Title: Unicode characters in branch name · Issue #774 · gitpython-developers/GitPython
Description: Hi! I an trying to get diffs using GitPython, and i have an issue when branch name have unicode characters. Here is repo where bug can be reproduced: https://github.com/timqsh/test_git_python branch: МояВетка when i run this code: repo =...
Open Graph Description: Hi! I an trying to get diffs using GitPython, and i have an issue when branch name have unicode characters. Here is repo where bug can be reproduced: https://github.com/timqsh/test_git_python branc...
X Description: Hi! I an trying to get diffs using GitPython, and i have an issue when branch name have unicode characters. Here is repo where bug can be reproduced: https://github.com/timqsh/test_git_python branc...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/774
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unicode characters in branch name","articleBody":"Hi! I an trying to get diffs using GitPython, and i have an issue when branch name have unicode characters.\r\n\r\nHere is repo where bug can be reproduced:\r\nhttps://github.com/timqsh/test_git_python\r\nbranch:\r\nМояВетка\r\n\r\nwhen i run this code:\r\n```\r\nrepo = git.Repo('.')\r\nHEAD = repo.head.commit\r\n```\r\n\r\ni get this error:\r\n```\r\nTraceback (most recent call last):\r\n File \".\\test.py\", line 4, in \u003cmodule\u003e\r\n HEAD = repo.head.commit\r\n File \"C:\\Users\\kushukov\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\git\\refs\\symbolic.py\", line 200, in _get_commit\r\n obj = self._get_object()\r\n File \"C:\\Users\\kushukov\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\git\\refs\\symbolic.py\", line 193, in _get_object\r\n return Object.new_from_sha(self.repo, hex_to_bin(self.dereference_recursive(self.repo, self.path)))\r\n File \"C:\\Users\\kushukov\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\git\\refs\\symbolic.py\", line 135, in dereference_recursive\r\n hexsha, ref_path = cls._get_ref_info(repo, ref_path)\r\n File \"C:\\Users\\kushukov\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\git\\refs\\symbolic.py\", line 184, in _get_ref_info\r\n return cls._get_ref_info_helper(repo, ref_path)\r\n File \"C:\\Users\\kushukov\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\git\\refs\\symbolic.py\", line 167, in _get_ref_info_helper\r\n raise ValueError(\"Reference at %r does not exist\" % ref_path)\r\nValueError: Reference at 'refs/heads/Р\\u045aР\\u0455С\\u040fР\\u2019Р\\xb5С\\u201aРєР°' does not exist\r\n```\r\nI am testing this on Windows 10.\r\n\r\nforgot to add:\r\nGitPython 2.1.10","author":{"url":"https://github.com/timqsh","@type":"Person","name":"timqsh"},"datePublished":"2018-06-19T13:02:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/774/GitPython/issues/774"}
| 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:43b18a21-3623-393c-7898-fbb522cbbc4c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8DEA:2D0DCE:645C58:870834:696973FB |
| html-safe-nonce | 0e9438937dd65c98e43a625ffdbf5e1d81380e165cafab963b08d5223bc503c9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REVBOjJEMERDRTo2NDVDNTg6ODcwODM0OjY5Njk3M0ZCIiwidmlzaXRvcl9pZCI6IjgzMTc5NzY5ODU0MTI5MjQ0MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 571ded6f4351047cbd8da2f3130a372cd997579feee4793d14c58d838c685a73 |
| hovercard-subject-tag | issue:333661528 |
| 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/774/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ff33fd6e988b89b1b5b0ebd519f545c9bd2a6acc6cf90478ab1bd483b8ecf9ca/gitpython-developers/GitPython/issues/774 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ff33fd6e988b89b1b5b0ebd519f545c9bd2a6acc6cf90478ab1bd483b8ecf9ca/gitpython-developers/GitPython/issues/774 |
| og:image:alt | Hi! I an trying to get diffs using GitPython, and i have an issue when branch name have unicode characters. Here is repo where bug can be reproduced: https://github.com/timqsh/test_git_python branc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timqsh |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| 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 | 212e3e3d3298bf5b313830edfd2399e869f7ea76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width