Mercurial > hg-git
changeset 920: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 Wed Jul 01 13:55:59 2015 -0700 +++ b/hggit/gitrepo.py Fri Jun 26 16:27:11 2015 -0700 @@ -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'