git.samba.org
/
jelmer
/
dulwich.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54787ea
)
Fix os.path.sep replacement on Python3.
author
Jelmer Vernooij
<jelmer@jelmer.uk>
Wed, 9 May 2018 19:14:53 +0000
(20:14 +0100)
committer
Jelmer Vernooij
<jelmer@jelmer.uk>
Wed, 9 May 2018 19:14:53 +0000
(20:14 +0100)
dulwich/refs.py
patch
|
blob
|
history
diff --git
a/dulwich/refs.py
b/dulwich/refs.py
index ef08f6817f08d6595fcf69238fdbae159d9fb3b0..58ebc3fd410e06f371b473bd667aacd08cfa9e5e 100644
(file)
--- a/
dulwich/refs.py
+++ b/
dulwich/refs.py
@@
-532,7
+532,9
@@
class DiskRefsContainer(RefsContainer):
"""
if os.path.sep != "/":
- name = name.replace("/", os.path.sep)
+ name = name.replace(
+ b"/",
+ os.path.sep.encode(sys.getfilesystemencoding()))
# TODO: as the 'HEAD' reference is working tree specific, it
# should actually not be a part of RefsContainer
if name == b'HEAD':