From 978314a4be4d51ceaca8bf8359b29289b16d2691 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Tue, 8 Apr 2014 10:46:46 -0500 Subject: [PATCH] Always normalize paths Apparently Mercurial can have paths such as 'foo//bar', so normalize all paths. Signed-off-by: Felipe Contreras --- git-remote-hg | 1 + 1 file changed, 1 insertion(+) diff --git a/git-remote-hg b/git-remote-hg index eb89ef6..84e3872 100755 --- a/git-remote-hg +++ b/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, '/')