summaryrefslogtreecommitdiff
path: root/contrib/remote-helpers
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2014-04-09 13:50:01 -0500
committerJunio C Hamano <gitster@pobox.com>2014-04-09 14:20:48 -0700
commit867bf7b490d6a4bd19b6f9ff7d30af654e9df276 (patch)
tree255136845f8b87bfba54ed35484af39b295ccefa /contrib/remote-helpers
parentfe45cfb518f7cb313051986e03c402bc206e55af (diff)
downloadgit-867bf7b490d6a4bd19b6f9ff7d30af654e9df276.tar.gz
remote-hg: always normalize paths
Apparently Mercurial can have paths such as 'foo//bar', so normalize all paths. Signed-off-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-hg1
1 files changed, 1 insertions, 0 deletions
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, '/')