mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
cmdutil: fix islocalrepo() under Windows
This commit is contained in:
parent
0933c6ae94
commit
2327836b0b
@ -286,7 +286,8 @@ def islocalrepo(url):
|
||||
return False
|
||||
if '#' in url.split('/')[-1]: # strip off #anchor
|
||||
url = url[:url.rfind('#')]
|
||||
path = urllib.unquote(url[len('file://'):])
|
||||
path = url[len('file://'):]
|
||||
path = urllib.url2pathname(path).replace(os.sep, '/')
|
||||
while '/' in path:
|
||||
if reduce(lambda x,y: x and y,
|
||||
map(lambda p: os.path.exists(os.path.join(path, p)),
|
||||
|
Loading…
Reference in New Issue
Block a user