mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
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>
This commit is contained in:
parent
fe45cfb518
commit
867bf7b490
@ -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, '/')
|
||||
|
Loading…
Reference in New Issue
Block a user