From: Felipe Contreras Date: Wed, 09 Apr 2014 18:50:01 GMT Subject: [PATCH 2/5] remote-hg: always normalize paths Message-ID: <1397069404-7451-3-git-send-email-felipe.contreras@gmail.com> In-Reply-To: <1397069404-7451-1-git-send-email-felipe.contreras@gmail.com> Apparently Mercurial can have paths such as 'foo//bar', so normalize all paths. Signed-off-by: Felipe Contreras --- contrib/remote-helpers/git-remote-hg | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index eb89ef6..84e3872 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, '/') -- 1.9.1+fc1