# HG changeset patch # User Augie Fackler <durin42@gmail.com> # Date 1240925181 25200 # Tue Apr 28 06:26:21 2009 -0700 # Node ID b258ef16ae37b7ad0839fcc1b390296537898e71 # Parent dc12a36a8d2b80a3473f755a0ebe422cae448b81 Fix non-ssh URI parsing. diff --git a/git_handler.py b/git_handler.py --- 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