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

gitrepo: use isgitsshuri in islocal

parent 6507d2a6
No related branches found
No related tags found
No related merge requests found
from util import isgitsshuri
from mercurial import util
try:
from mercurial.error import RepoError
......@@ -57,5 +58,8 @@
instance = gitrepo
def islocal(path):
if isgitsshuri(path):
return True
u = util.url(path)
return not u.scheme or u.scheme == 'file'
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