From: Richard Hansen Date: Mon, 18 Nov 2013 04:12:42 +0000 (-0500) Subject: remote-hg: don't decode UTF-8 paths into Unicode objects X-Git-Tag: v1.8.5~2^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c939d241673ad093336e936075a029127368d87e 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 Reviewed-by: Felipe Contreras Signed-off-by: Junio C Hamano --- diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index 3222afd9da..c6026b9bed 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg @@ -747,7 +747,7 @@ def parse_commit(parser): f = { 'deleted' : True } else: die('Unknown file command: %s' % line) - path = c_style_unescape(path).decode('utf-8') + path = c_style_unescape(path) files[path] = f # only export the commits if we are on an internal proxy repo