diff --git a/git_handler.py b/git_handler.py index dc12a36a8d2b80a3473f755a0ebe422cae448b81_Z2l0X2hhbmRsZXIucHk=..b258ef16ae37b7ad0839fcc1b390296537898e71_Z2l0X2hhbmRsZXIucHk= 100644 --- a/git_handler.py +++ b/git_handler.py @@ -375,5 +375,4 @@ 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@': @@ -379,2 +378,3 @@ if handler == 'git@': + host, path = uri[len(handler):].split(":", 1) host = 'git@' + host @@ -380,4 +380,6 @@ 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