From 867bf7b490d6a4bd19b6f9ff7d30af654e9df276 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Wed, 9 Apr 2014 13:50:01 -0500 Subject: remote-hg: always normalize paths Apparently Mercurial can have paths such as 'foo//bar', so normalize all paths. Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- contrib/remote-helpers/git-remote-hg | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib/remote-helpers/git-remote-hg') diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index eb89ef6779..84e3872d5c 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg @@ -260,6 +260,7 @@ class Parser: return (user, int(date), -tz) def fix_file_path(path): + path = os.path.normpath(path) if not os.path.isabs(path): return path return os.path.relpath(path, '/') -- cgit v1.2.3