Commits

David Golub committed 85eabbc

sync: recognize git protocol when hggit extension is enabled

  • Participants
  • Parent commits 9f19325
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/sync.py

         else:
             qtlib.WarningMsgBox(_('Malformed ssh URL'), hglib.tounicode(path))
             host, port, folder = '', '', ''
-    elif path.startswith(('http://', 'https://', 'svn+https://')):
+    elif path.startswith(('http://', 'https://', 'svn+https://', 'git://')):
         snpaqf = urlparse.urlparse(path)
         scheme, netloc, folder, params, query, fragment = snpaqf
         host, port, user, passwd = hglib.netlocsplit(netloc)
         self._schemes = ['local', 'ssh', 'http', 'https']
         if 'hgsubversion' in repo.extensions():
             self._schemes.append('svn+https')
+        if 'hggit' in repo.extensions():
+            self._schemes.append('git')
 
         self.repo = repo
         self.finishfunc = None