# HG changeset patch # User Sean Farley # Date 1435361741 25200 # Node ID ee9017a3c269f35735917eb8614844900db73f03 # Parent 5f93caf337a9aa28d725ab2a198c83ae17ac5762 init: test for raw git ssh paths diff -r 5f93caf337a9 -r ee9017a3c269 hggit/__init__.py --- a/hggit/__init__.py Fri Jun 26 16:32:20 2015 -0700 +++ b/hggit/__init__.py Fri Jun 26 16:35:41 2015 -0700 @@ -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