Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0e4b57d

Browse files
committed
Fix for UnicodeEncodeError in git.Repo.clone_from() when path contains non-ascii characters
1 parent e8e009d commit 0e4b57d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎gitdb/utils/encoding.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
text_type = unicode
99

1010

11-
def force_bytes(data, encoding="ascii"):
11+
def force_bytes(data, encoding="utf-8"):
1212
if isinstance(data, bytes):
1313
return data
1414

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /