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)
|
return (user, int(date), -tz)
|
||||||
|
|
||||||
def fix_file_path(path):
|
def fix_file_path(path):
|
||||||
|
path = os.path.normpath(path)
|
||||||
if not os.path.isabs(path):
|
if not os.path.isabs(path):
|
||||||
return path
|
return path
|
||||||
return os.path.relpath(path, '/')
|
return os.path.relpath(path, '/')
|
||||||
|
Loading…
Reference in New Issue
Block a user