Skip to content
Snippets Groups Projects
Commit 5d87d00d authored by Manuel Jacob's avatar Manuel Jacob
Browse files

py3: use pycompat.sysstr

parent f5180bed
No related branches found
No related tags found
1 merge request!20Python 3 porting: ready for review (and merge)
Pipeline #5601 passed with warnings
......@@ -165,7 +165,8 @@
# have to cope with that. As a workaround, try decoding our
# (bytes) path to the repo in hg's active encoding and hope
# for the best.
gitpath = self.gitdir.decode(encoding.encoding, encoding.encodingmode)
gitpath = self.gitdir.decode(pycompat.sysstr(encoding.encoding),
pycompat.sysstr(encoding.encodingmode))
# make the git data directory
if os.path.exists(self.gitdir):
return Repo(gitpath)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment