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:
b3c2d6d
)
Re-encode symlink.
author
Jelmer Vernooij
<jelmer@jelmer.uk>
Mon, 1 May 2017 14:15:53 +0000
(14:15 +0000)
committer
Jelmer Vernooij
<jelmer@jelmer.uk>
Mon, 1 May 2017 14:15:53 +0000
(14:15 +0000)
dulwich/index.py
patch
|
blob
|
history
diff --git
a/dulwich/index.py
b/dulwich/index.py
index 0ad91aaf29703adce7bf6febbef11daf6fbfb7ea..8d6cdf3b60d7497466da77db48d9bd5a41153999 100644
(file)
--- a/
dulwich/index.py
+++ b/
dulwich/index.py
@@
-548,7
+548,10
@@
def blob_from_path_and_stat(fs_path, st):
if sys.platform == 'win32' and sys.version_info[0] == 3:
# os.readlink on Python3 on Windows requires a unicode string.
fs_path = fs_path.decode(sys.getfilesystemencoding())
- blob.data = os.readlink(fs_path)
+ blob.data = os.readlink(fs_path).encode(
+ sys.getfilesystemencoding())
+ else:
+ blob.data = os.readlink(fs_path)
return blob