René's URL Explorer Experiment


Title: Pr unicode encode error by xarx00 · Pull Request #49 · gitpython-developers/gitdb · GitHub

Open Graph Title: Pr unicode encode error by xarx00 · Pull Request #49 · gitpython-developers/gitdb

X Title: Pr unicode encode error by xarx00 · Pull Request #49 · gitpython-developers/gitdb

Description: This fixes the exception Traceback (most recent call last): File "c:\program files\python37\lib\site-packages\gitlab\v4\bulk.py", line 429, in clone git.Repo.clone_from(url, wdpath) File "c:\program files\python37\lib\site-packages\git\repo\base.py", line 988, in clone_from return cls._clone(git, url, to_path, GitCmdObjectDB, progress, **kwargs) File "c:\program files\python37\lib\site-packages\git\repo\base.py", line 939, in _clone finalize_process(proc, stderr=stderr) File "c:\program files\python37\lib\site-packages\git\util.py", line 333, in finalize_process proc.wait(**kwargs) File "c:\program files\python37\lib\site-packages\git\cmd.py", line 402, in wait stderr = force_bytes(stderr) File "c:\program files\python37\lib\site-packages\gitdb\utils\encoding.py", line 16, in force_bytes return data.encode(encoding) UnicodeEncodeError: 'ascii' codec can't encode characters in position 29-32: ordinal not in range(128) in git.repo.clone_from(url, path) when path contains non-ascii characters. The stderr string being encoded contains Cloning into 'W:\SBER\Repozitář\test/test1'... POST git-upload-pack (237 bytes) Very probably, this error can occur in other situations too, hence I changed the default encoding here, into the gitdb utils. Edit: This PR is related to gitpython-developers/GitPython#761 and #48.

Open Graph Description: This fixes the exception Traceback (most recent call last): File "c:\program files\python37\lib\site-packages\gitlab\v4\bulk.py", line 429, in clone git.Repo.clone_from(url, wdpath)...

X Description: This fixes the exception Traceback (most recent call last): File "c:\program files\python37\lib\site-packages\gitlab\v4\bulk.py", line 429, in clone git.Repo.clone_from(url,...

Opengraph URL: https://github.com/gitpython-developers/gitdb/pull/49

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2bd0a460-c74d-af32-3f63-9b4829bfc337
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id93D4:A9278:7401A9:9B7F44:6B00B017
html-safe-noncee76d1ded04f5f6b7346fc0e94b293a50279cb49483fea048f00481c16eed75e7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0Q0OkE5Mjc4Ojc0MDFBOTo5QjdGNDQ6NkIwMEIwMTciLCJ2aXNpdG9yX2lkIjoiMzU4NzcwODk1MDQ2NjE5MTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacccd99fe5e07cded5b5ed625c24e27a16a77ba22558390cccbfa79b3d91cc6461
hovercard-subject-tagpull_request:267743093
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/gitpython-developers/gitdb/pull/49/files
twitter:imagehttps://avatars.githubusercontent.com/u/15482887?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/15482887?s=400&v=4
og:image:altThis fixes the exception Traceback (most recent call last): File "c:\program files\python37\lib\site-packages\gitlab\v4\bulk.py", line 429, in clone git.Repo.clone_from(url, wdpath)...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec0dd5f5d6f515a591019ecd66df2c4eab3379c2d3b0777568a90d8c7ae10b79e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/gitpython-developers/gitdb git https://github.com/gitpython-developers/gitdb.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126093
octolytics-dimension-repository_nwogitpython-developers/gitdb
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126093
octolytics-dimension-repository_network_root_nwogitpython-developers/gitdb
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/gitpython-developers/gitdb/pull/49/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2Fgitdb%2Fpull%2F49%2Ffiles
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%2Fgitdb%2Fpull%2F49%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=gitpython-developers%2Fgitdb
Reloadhttps://github.com/gitpython-developers/gitdb/pull/49/files
Reloadhttps://github.com/gitpython-developers/gitdb/pull/49/files
Reloadhttps://github.com/gitpython-developers/gitdb/pull/49/files
gitpython-developershttps://github.com/gitpython-developers
gitdbhttps://github.com/gitpython-developers/gitdb
Codehttps://github.com/gitpython-developers/gitdb
Issues6 (6)https://github.com/gitpython-developers/gitdb/issues
Pull requestshttps://github.com/gitpython-developers/gitdb/pulls
Discussionshttps://github.com/gitpython-developers/gitdb/discussions
Actionshttps://github.com/gitpython-developers/gitdb/actions
Security and qualityhttps://github.com/gitpython-developers/gitdb/security
Insightshttps://github.com/gitpython-developers/gitdb/insights
Harmon758https://github.com/Harmon758
gitpython-developers:masterhttps://github.com/gitpython-developers/gitdb/tree/master
xarx00:PR-UnicodeEncodeErrorhttps://github.com/xarx00/gitdb/tree/PR-UnicodeEncodeError
Conversation 0 https://github.com/gitpython-developers/gitdb/pull/49
Commits 5 https://github.com/gitpython-developers/gitdb/pull/49/commits
Checks 0 https://github.com/gitpython-developers/gitdb/pull/49/checks
Files changed https://github.com/gitpython-developers/gitdb/pull/49/files
Please reload this pagehttps://github.com/gitpython-developers/gitdb/pull/49/files
Pr unicode encode error https://github.com/gitpython-developers/gitdb/pull/49/files#top
Show all changes 5 commits https://github.com/gitpython-developers/gitdb/pull/49/files
3e28e6e Bump patch level: remove support for old python versions Byron Oct 13, 2018 https://github.com/gitpython-developers/gitdb/pull/49/commits/3e28e6e896543814ea312baa9ba6c6065caba797
b1adf60 Another version bump... dunno what happened there. Byron Oct 13, 2018 https://github.com/gitpython-developers/gitdb/pull/49/commits/b1adf606f416f82ec69cd83cfc2b94cddc6928bd
0e4b57d Fix for UnicodeEncodeError in git.Repo.clone_from() when path contain… xarx00 Apr 5, 2019 https://github.com/gitpython-developers/gitdb/pull/49/commits/0e4b57d4511686d1aeb5479a7aa0dad3a5338d6e
39d3666 Merge commit 'b1adf606f416f82ec69cd83cfc2b94cddc6928bd' into PR-Unico… xarx00 Apr 5, 2019 https://github.com/gitpython-developers/gitdb/pull/49/commits/39d36669cc1f7a8f4d879ecabc4fc56643cb0e9b
d829152 Merge branch 'master' into PR-UnicodeEncodeError Harmon758 Feb 18, 2020 https://github.com/gitpython-developers/gitdb/pull/49/commits/d8291525f987dbe403f3ca42c79f74c2f8088991
Clear filters https://github.com/gitpython-developers/gitdb/pull/49/files
Please reload this pagehttps://github.com/gitpython-developers/gitdb/pull/49/files
Please reload this pagehttps://github.com/gitpython-developers/gitdb/pull/49/files
gitdb/utils/encoding.pyhttps://github.com/gitpython-developers/gitdb/pull/49/files#diff-b7ffdcd1be8bbc29b1b33c9a950d036872a9b862c71aace46158b38bb0954894
View file https://github.com/xarx00/gitdb/blob/d8291525f987dbe403f3ca42c79f74c2f8088991/gitdb/utils/encoding.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/gitpython-developers/gitdb/pull/49/{{ revealButtonHref }}
https://github.com/gitpython-developers/gitdb/pull/49/files#diff-b7ffdcd1be8bbc29b1b33c9a950d036872a9b862c71aace46158b38bb0954894
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.