Title: Error using Chinese path or Chinese branch name · Issue #1362 · gitpython-developers/GitPython · GitHub
Open Graph Title: Error using Chinese path or Chinese branch name · Issue #1362 · gitpython-developers/GitPython
X Title: Error using Chinese path or Chinese branch name · Issue #1362 · gitpython-developers/GitPython
Description: Environmental Information Windows10 Python3.8 GitPython 3.1.24 Error 1 Chinese path: git.Repo.clone_from(url="git@gitee.com:xun-mi-git/test-x.git", to_path="C:\\Users\\asus\\3D Objects\\个人项目\\test") Error message Exception in thread Thre...
Open Graph Description: Environmental Information Windows10 Python3.8 GitPython 3.1.24 Error 1 Chinese path: git.Repo.clone_from(url="git@gitee.com:xun-mi-git/test-x.git", to_path="C:\\Users\\asus\\3D Objects\\个人项目\\test"...
X Description: Environmental Information Windows10 Python3.8 GitPython 3.1.24 Error 1 Chinese path: git.Repo.clone_from(url="git@gitee.com:xun-mi-git/test-x.git", to_path="C:\\Users\\asus\\3D Objec...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1362
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error using Chinese path or Chinese branch name","articleBody":"# Environmental Information\r\nWindows10\r\nPython3.8\r\nGitPython 3.1.24\r\n\r\n# Error 1\r\n## Chinese path: \r\n`git.Repo.clone_from(url=\"git@gitee.com:xun-mi-git/test-x.git\", to_path=\"C:\\\\Users\\\\asus\\\\3D Objects\\\\个人项目\\\\test\")`\r\n## Error message\r\n```python\r\nException in thread Thread-6:\r\nTraceback (most recent call last):\r\n File \"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\\lib\\threading.py\", line 932, in _bootstrap_inner\r\n self.run()\r\n File \"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\\lib\\threading.py\", line 870, in run\r\n self._target(*self._args, **self._kwargs)\r\n File \"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\\lib\\subprocess.py\", line 1370, in _readerthread\r\n buffer.append(fh.read())\r\nUnicodeDecodeError: 'gbk' codec can't decode byte 0xaa in position 41: illegal multibyte sequence\r\n```\r\n## screenshot\r\n\r\n\r\n# Error 2\r\n## Chinese branch: \r\n```python\r\n git.Repo.clone_from(url=\"git@gitee.com:xun-mi-git/test-x.git\", to_path=\"C:\\\\test\")\r\n a = Repo(\"C:\\\\test\").remotes[0]\r\n for i in a.refs:\r\n print(i.name)\r\n a = a.pull()\r\n```\r\n## Error message\r\n```python\r\norigin/HEAD\r\norigin/默认分支\r\nException in thread Thread-7:\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\asus\\3D Objects\\Python环境\\常用通用库\\lib\\site-packages\\git\\cmd.py\", line 109, in pump_stream\r\n for line in stream:\r\nUnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 58: illegal multibyte sequence\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n File \"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\\lib\\threading.py\", line 932, in _bootstrap_inner\r\n self.run()\r\n File \"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\\lib\\threading.py\", line 870, in run\r\n self._target(*self._args, **self._kwargs)\r\n File \"C:\\Users\\asus\\3D Objects\\Python环境\\常用通用库\\lib\\site-packages\\git\\cmd.py\", line 122, in pump_stream\r\n raise CommandError([f'\u003c{name}-pump\u003e'] + remove_password_if_present(cmdline), ex) from ex\r\ngit.exc.CommandError: Cmd('\u003cstderr-pump\u003e') failed due to: UnicodeDecodeError(''gbk' codec can't decode byte 0xae in position 58: illegal multibyte sequence')\r\n cmdline: \u003cstderr-pump\u003e git pull -v origin\r\n```\r\n## screenshot\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/xunmi-git","@type":"Person","name":"xunmi-git"},"datePublished":"2021-10-19T06:22:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1362/GitPython/issues/1362"}
| 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:d02c03bc-5f88-1fef-5afe-f11b49aaaa59 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBE4:2004F6:1D595C:26EF9B:69697759 |
| html-safe-nonce | ab0ada72131257e81ca9a9eb2fb331a684ce91c8a44e2ea302540ffd8b31d81c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkU0OjIwMDRGNjoxRDU5NUM6MjZFRjlCOjY5Njk3NzU5IiwidmlzaXRvcl9pZCI6IjEwOTQ5MjM3MzY4ODg5OTc3MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d4932119675c399bbc4d65230af3e687c007e3aae85a4aa7fab24719d5f5cbdf |
| hovercard-subject-tag | issue:1029906410 |
| 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/1362/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d0d7c8d6e47e61aa2ed9dfd77c6886b25922ca6dd8234a9f7257d33390b0d171/gitpython-developers/GitPython/issues/1362 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0d7c8d6e47e61aa2ed9dfd77c6886b25922ca6dd8234a9f7257d33390b0d171/gitpython-developers/GitPython/issues/1362 |
| og:image:alt | Environmental Information Windows10 Python3.8 GitPython 3.1.24 Error 1 Chinese path: git.Repo.clone_from(url="git@gitee.com:xun-mi-git/test-x.git", to_path="C:\\Users\\asus\\3D Objects\\个人项目\\test"... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xunmi-git |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width