{"action":"opened","issue":{"url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/774","repository_url":"https://api.github.com/repos/gitpython-developers/GitPython","labels_url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/774/labels{/name}","comments_url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/774/comments","events_url":"https://api.github.com/repos/gitpython-developers/GitPython/issues/774/events","html_url":"https://github.com/gitpython-developers/GitPython/issues/774","id":333661528,"node_id":"MDU6SXNzdWUzMzM2NjE1Mjg=","number":774,"title":"Unicode characters in branch name","user":{"login":"timqsh","id":31916838,"node_id":"MDQ6VXNlcjMxOTE2ODM4","avatar_url":"https://avatars2.githubusercontent.com/u/31916838?v=4","gravatar_id":"","url":"https://api.github.com/users/timqsh","html_url":"https://github.com/timqsh","followers_url":"https://api.github.com/users/timqsh/followers","following_url":"https://api.github.com/users/timqsh/following{/other_user}","gists_url":"https://api.github.com/users/timqsh/gists{/gist_id}","starred_url":"https://api.github.com/users/timqsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timqsh/subscriptions","organizations_url":"https://api.github.com/users/timqsh/orgs","repos_url":"https://api.github.com/users/timqsh/repos","events_url":"https://api.github.com/users/timqsh/events{/privacy}","received_events_url":"https://api.github.com/users/timqsh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-19T13:02:34Z","updated_at":"2018-06-19T13:02:34Z","closed_at":null,"author_association":"NONE","body":"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 <module>\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."}}
{"actor":{"display_login":"timqsh"}}