Skip to content
Snippets Groups Projects
Commit b258ef16ae37 authored by Augie Fackler's avatar Augie Fackler
Browse files

Fix non-ssh URI parsing.

parent dc12a36a8d2b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment