Mercurial > hg > hg-git
changeset 921:0e975d03f8ca
gitrepo: use isgitsshuri in islocal
author | Sean Farley <sean@farley.io> |
---|---|
date | Fri, 26 Jun 2015 16:27:11 -0700 |
parents | 6507d2a6be0a |
children | 5f93caf337a9 |
files | hggit/gitrepo.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/gitrepo.py +++ b/hggit/gitrepo.py @@ -1,3 +1,4 @@ +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'