Skip to content

Commit bfbd5ec

Browse files
ishepardByron
authored andcommitted
change decode type and add replace flag
1 parent 9541d6b commit bfbd5ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: git/diff.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def __init__(self, repo, a_rawpath, b_rawpath, a_blob_id, b_blob_id, a_mode,
275275
# we need to overwrite "repo" to the corresponding submodule's repo instead
276276
if repo and a_rawpath:
277277
for submodule in repo.submodules:
278-
if submodule.path == a_rawpath.decode("utf-8"):
278+
if submodule.path == a_rawpath.decode(defenc, 'replace'):
279279
if submodule.module_exists():
280280
repo = submodule.module()
281281
break

0 commit comments

Comments
 (0)