René's URL Explorer Experiment


Title: Impossible to clone to path with unicode · Issue #920 · gitpython-developers/GitPython · GitHub

Open Graph Title: Impossible to clone to path with unicode · Issue #920 · gitpython-developers/GitPython

X Title: Impossible to clone to path with unicode · Issue #920 · gitpython-developers/GitPython

Description: Hi, in integration of GitPython I ran into an issue with cloning into directories that have an unicode name. This was an issue with version 2.1.9 and has not been fixed with upgrade to 3.0.2. I am using Python 3.7. Basically, if you pass...

Open Graph Description: Hi, in integration of GitPython I ran into an issue with cloning into directories that have an unicode name. This was an issue with version 2.1.9 and has not been fixed with upgrade to 3.0.2. I am ...

X Description: Hi, in integration of GitPython I ran into an issue with cloning into directories that have an unicode name. This was an issue with version 2.1.9 and has not been fixed with upgrade to 3.0.2. I am ...

Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/920

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Impossible to clone to path with unicode","articleBody":"Hi, in integration of GitPython I ran into an issue with cloning into directories that have an unicode name. This was an issue with version 2.1.9 and has not been fixed with upgrade to 3.0.2.\r\n\r\nI am using Python 3.7.\r\n\r\nBasically, if you pass a `str` with some unicode to e.g. `Repo.clone_from` than the package throws an `UnicodeEncodeError`, it seems in processing of the output of the command.\r\n\r\n```\r\n    return Repo.clone_from(repo, repo_path, branch=branch, **kwargs)\r\nvenv/lib64/python3.7/site-packages/git/repo/base.py:1023: in clone_from\r\n    return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs)\r\nvenv/lib64/python3.7/site-packages/git/repo/base.py:969: in _clone\r\n    finalize_process(proc, stderr=stderr)\r\nvenv/lib64/python3.7/site-packages/git/util.py:333: in finalize_process\r\n    proc.wait(**kwargs)\r\nvenv/lib64/python3.7/site-packages/git/cmd.py:399: in wait\r\n    stderr = force_bytes(stderr)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n\r\ndata = \"Cloning into '/tmp/arca/test/abčď/repos/_tmp_tmp1f9n_j71299f859f6fac750147aec65a9992f8e289ef42177ff1b234677764b2d5c61560/master'...\\n\", encoding = 'ascii'\r\n\r\n    def force_bytes(data, encoding=\"ascii\"):\r\n        if isinstance(data, bytes):\r\n            return data\r\n    \r\n        if isinstance(data, string_types):\r\n>           return data.encode(encoding)\r\nE           UnicodeEncodeError: 'ascii' codec can't encode characters in position 31-32: ordinal not in range(128)\r\n```\r\n\r\nSince GitPython is Python 3+ only now, it would make make sense to set the default encoding in `force_bytes` to utf-8, that actually fixes the issue when I try it. This was proposed in https://github.com/gitpython-developers/gitdb/pull/48 and or https://github.com/gitpython-developers/gitdb/pull/49, but it's been a while since those have been proposed.\r\n\r\nMaybe an another solution would be for the use to be able to select the default encoding somehow, as not to break previous cases, but to provide a solution for this issue?\r\n\r\nThis is related to #761, which seems to be stale at the moment. I'm raising the issue again since it's still an problem in the new version of GitPython which is Python 3+. \r\n","author":{"url":"https://github.com/mikicz","@type":"Person","name":"mikicz"},"datePublished":"2019-09-12T13:07:47Z","url":"https://github.com/gitpython-developers/GitPython/issues/920"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8ca54fc9-d9d4-cdd1-3386-3eed6fa0cfc0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8A7A:20F00E:7932EF:A1D553:6B00B011
html-safe-noncea1988351915e4b03586771f4db184177f0884cc20004ca89b98215651d549452
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTdBOjIwRjAwRTo3OTMyRUY6QTFENTUzOjZCMDBCMDExIiwidmlzaXRvcl9pZCI6Ijg3ODk3NDk5MzcxMjc2MDAxNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd0fdacdbb8a1dbb9844f53cc1d93acc927f047a10efe7dc0fa5ad00541fbe40a
hovercard-subject-tagissue:492794783
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/920/issue_layout
twitter:imagehttps://opengraph.githubassets.com/24d4e912eb2e1da943abfbdecdf78fb2dc6fb8ac468a631e1c50c4a0b0882072/gitpython-developers/GitPython/issues/920
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/24d4e912eb2e1da943abfbdecdf78fb2dc6fb8ac468a631e1c50c4a0b0882072/gitpython-developers/GitPython/issues/920
og:image:altHi, in integration of GitPython I ran into an issue with cloning into directories that have an unicode name. This was an issue with version 2.1.9 and has not been fixed with upgrade to 3.0.2. I am ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemikicz
hostnamegithub.com
expected-hostnamegithub.com
Nonec0dd5f5d6f515a591019ecd66df2c4eab3379c2d3b0777568a90d8c7ae10b79e
turbo-cache-controlno-preview
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release729d8cda69b3d267995675dfbf89ff27ccf61bf6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/issues/920#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fissues%2F920
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fissues%2F920
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://github.com/gitpython-developers/GitPython/issues/920
Reloadhttps://github.com/gitpython-developers/GitPython/issues/920
Reloadhttps://github.com/gitpython-developers/GitPython/issues/920
gitpython-developershttps://github.com/gitpython-developers
GitPythonhttps://github.com/gitpython-developers/GitPython
Codehttps://github.com/gitpython-developers/GitPython
Issues1 (1)https://github.com/gitpython-developers/GitPython/issues
Pull requestshttps://github.com/gitpython-developers/GitPython/pulls
Discussionshttps://github.com/gitpython-developers/GitPython/discussions
Actionshttps://github.com/gitpython-developers/GitPython/actions
Security and quality42 (42)https://github.com/gitpython-developers/GitPython/security
Insightshttps://github.com/gitpython-developers/GitPython/insights
https://github.com/gitpython-developers/GitPython
New issuehttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/920
New issuehttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/920
Impossible to clone to path with unicodehttps://github.com/gitpython-developers/GitPython/issues/920#top
acknowledgedhttps://github.com/gitpython-developers/GitPython/issues?q=state%3Aopen%20label%3A%22acknowledged%22
https://github.com/mikicz
mikiczhttps://github.com/mikicz
on Sep 12, 2019https://github.com/gitpython-developers/GitPython/issues/920#issue-492794783
gitpython-developers/gitdb#48https://github.com/gitpython-developers/gitdb/pull/48
gitpython-developers/gitdb#49https://github.com/gitpython-developers/gitdb/pull/49
#761https://github.com/gitpython-developers/GitPython/issues/761
Byronhttps://github.com/Byron
acknowledgedhttps://github.com/gitpython-developers/GitPython/issues?q=state%3Aopen%20label%3A%22acknowledged%22
help wantedhttps://github.com/gitpython-developers/GitPython/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
on Sep 13, 2019https://github.com/gitpython-developers/GitPython/issues/920#event-2631264268
https://github.com/Byron
Byronhttps://github.com/Byron
on Sep 13, 2019https://github.com/gitpython-developers/GitPython/issues/920#issuecomment-531107727
ulturthttps://github.com/ulturt
on Oct 26, 2019https://github.com/gitpython-developers/GitPython/issues/920#event-2746160637
Fix gitpython-developers#920https://github.com/ulturt/GitPython/commit/88f16a91771cd34aee0cd1555bcae70bd6c16983
gitpython-developers#920https://github.com/gitpython-developers/GitPython/issues/920
https://docs.github.com/articles/closing-issues-via-commit-messages
88f16a9https://github.com/ulturt/GitPython/commit/88f16a91771cd34aee0cd1555bcae70bd6c16983
Byronhttps://github.com/Byron
completedhttps://github.com/gitpython-developers/GitPython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
ebf4656https://github.com/gitpython-developers/GitPython/commit/ebf46561837f579d202d7bd4a22362f24fb858a4
on Oct 28, 2019https://github.com/gitpython-developers/GitPython/issues/920#event-2747568086
Harmon758https://github.com/Harmon758
help wantedhttps://github.com/gitpython-developers/GitPython/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
on Feb 18, 2020https://github.com/gitpython-developers/GitPython/issues/920#event-3048520685
Shidfarhttps://github.com/Shidfar
on Apr 28, 2025https://github.com/gitpython-developers/GitPython/issues/920#event-17438977255
Fix gitpython-developers#920https://github.com/Shidfar/GitPython/commit/ebf46561837f579d202d7bd4a22362f24fb858a4
gitpython-developers#920https://github.com/gitpython-developers/GitPython/issues/920
https://docs.github.com/articles/closing-issues-via-commit-messages
ebf4656https://github.com/Shidfar/GitPython/commit/ebf46561837f579d202d7bd4a22362f24fb858a4
Sign up for freehttps://github.com/signup?return_to=https://github.com/gitpython-developers/GitPython/issues/920
Sign in to commenthttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/920
acknowledgedhttps://github.com/gitpython-developers/GitPython/issues?q=state%3Aopen%20label%3A%22acknowledged%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.