diff options
author | Davide Spadini <spadini.davide@gmail.com> | 2020-11-10 15:21:56 +0100 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-11-10 23:05:51 +0800 |
commit | bfbd5ece215dea328c3c6c4cba31225caa66ae9a (patch) | |
tree | 80a92f636f28fd1f13f9c00d55204754fda22c5b /git/diff.py | |
parent | 9541d6bffe4e4275351d69fec2baf6327e1ff053 (diff) | |
download | gitpython-bfbd5ece215dea328c3c6c4cba31225caa66ae9a.tar.gz |
change decode type and add replace flag
Diffstat (limited to 'git/diff.py')
-rw-r--r-- | git/diff.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/diff.py b/git/diff.py index 567e3e70..0fc30b9e 100644 --- a/git/diff.py +++ b/git/diff.py @@ -275,7 +275,7 @@ class Diff(object): # we need to overwrite "repo" to the corresponding submodule's repo instead if repo and a_rawpath: for submodule in repo.submodules: - if submodule.path == a_rawpath.decode("utf-8"): + if submodule.path == a_rawpath.decode(defenc, 'replace'): if submodule.module_exists(): repo = submodule.module() break |