Skip to content
Snippets Groups Projects
Commit ee9017a3 authored by Sean Farley's avatar Sean Farley
Browse files

init: test for raw git ssh paths

parent 5f93caf3
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,9 @@
os.path.exists(os.path.join(p, 'refs')) and
not os.path.exists(os.path.join(p, '.hg'))):
return gitrepo
# detect git ssh urls (which mercurial thinks is a file-like path)
if util.isgitsshuri(p):
return gitrepo
return _oldlocal(path)
hg.schemes['file'] = _local
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment