Skip to content
Snippets Groups Projects
Commit e3b5b23f authored by Brendan Cully's avatar Brendan Cully
Browse files

Define gitrepo.islocal

This makes hg clone src dst create the correct default path when
src is a local path.
parent 6d4f3b6d
No related branches found
No related tags found
No related merge requests found
......@@ -34,3 +34,7 @@
instance = gitrepo
def islocal(path):
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