map: Avoid looping forever with mutually recursive paths between repositories accessed via ssh
Slightly unsatisfying to fix this in Git.Construct.localToUrl rather than in Command.Map.absRepo, which is what map relies on to make repos always use the same path form. But it was already constructing the url with the path there, so that was the easiest place to add normalization. Sponsored-by: Dartmouth College's OpenNeuro project
This commit is contained in:
parent
87c6110a82
commit
fd493804c0
4 changed files with 13 additions and 15 deletions
|
@ -130,7 +130,7 @@ localToUrl reference r
|
|||
[ s
|
||||
, "//"
|
||||
, auth
|
||||
, fromOsPath $
|
||||
, fromOsPath $ simplifyPath $
|
||||
toOsPath referencepath </> repoPath r
|
||||
]
|
||||
in r { location = Url $ fromJust $ parseURIPortable absurl }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue