summaryrefslogtreecommitdiff
path: root/contrib/remote-helpers
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@bbn.com>2013-11-18 04:12:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-11-18 21:45:56 (GMT)
commitc939d241673ad093336e936075a029127368d87e (patch)
treef71954276fbbf8042bbc8283eaf0670413de1aa5 /contrib/remote-helpers
parent706150404d42c712a1a00acf191cbe3e1c499ca2 (diff)
downloadgit-c939d241673ad093336e936075a029127368d87e.zip
git-c939d241673ad093336e936075a029127368d87e.tar.gz
git-c939d241673ad093336e936075a029127368d87e.tar.bz2
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 <rhansen@bbn.com> Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/remote-helpers')
-rwxr-xr-xcontrib/remote-helpers/git-remote-hg2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg
index 3222afd..c6026b9 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