changeset 923:ee9017a3c269

init: test for raw git ssh paths
author Sean Farley <sean@farley.io>
date Fri, 26 Jun 2015 16:35:41 -0700
parents 5f93caf337a9
children e28affca64de
files hggit/__init__.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/__init__.py
+++ b/hggit/__init__.py
@@ -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