Skip to content

Commit 5c1d2e8

Browse files
rhansengitster
authored andcommitted
remote-hg: don't decode UTF-8 paths into Unicode objects
The internal mercurial API expects ordinary 8-bit string objects, not Unicode string objects. With this change, the test-hg.sh unit tests pass again. Signed-off-by: Richard Hansen <[email protected]> Reviewed-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent becb433 commit 5c1d2e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/remote-helpers/git-remote-hg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ def parse_commit(parser):
725725
f = { 'deleted' : True }
726726
else:
727727
die('Unknown file command: %s' % line)
728-
path = c_style_unescape(path).decode('utf-8')
728+
path = c_style_unescape(path)
729729
files[path] = f
730730

731731
# only export the commits if we are on an internal proxy repo

0 commit comments

Comments
 (0)