Mercurial > hg > hg-git
changeset 28:b258ef16ae37
Fix non-ssh URI parsing.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Tue, 28 Apr 2009 06:26:21 -0700 |
parents | dc12a36a8d2b |
children | 2a5c0bf0fef5 |
files | git_handler.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/git_handler.py +++ b/git_handler.py @@ -375,9 +375,11 @@ from dulwich.client import TCPGitClient, SSHGitClient, SubprocessGitClient for handler, transport in (("git://", TCPGitClient), ("git@", SSHGitClient)): if uri.startswith(handler): - host, path = uri[len(handler):].split(":", 1) if handler == 'git@': + host, path = uri[len(handler):].split(":", 1) host = 'git@' + host + else: + host, path = uri[len(handler):].split('/', 1) return transport(host), '/' + path # if its not git or git+ssh, try a local url.. return SubprocessGitClient(), uri