From: Felipe Contreras Date: Wed, 9 Apr 2014 18:50:01 +0000 (-0500) Subject: remote-hg: always normalize paths X-Git-Tag: v2.0.0-rc0~2^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=867bf7b490d6a4bd19b6f9ff7d30af654e9df276;p=thirdparty%2Fgit.git 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 --- 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, '/')