Skip to content

Commit

Permalink
remote-hg: don't decode UTF-8 paths into Unicode objects
Browse files Browse the repository at this point in the history
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 <rhansen@bbn.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Richard Hansen authored and Junio C Hamano committed Nov 18, 2013
1 parent 7061504 commit c939d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/remote-helpers/git-remote-hg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c939d24

Please sign in to comment.