Add support for Git scp-like syntax

This commit is contained in:
Ivan Kravets committed 2017-11-27 21:04:51 +02:00
1 parent 79b7974f35
commit f5f3cd85d8
6 files changed
+23 -21

No files matched your search

+2 -1
View File
@@ -29,8 +29,9 @@ class VCSClientFactory(object):
result = urlparse(remote_url)
type_ = result.scheme
tag = None
if not type_ and remote_url.startswith("git@"):
if not type_ and remote_url.startswith("git+"):
type_ = "git"
remote_url = remote_url[4:]
elif "+" in result.scheme:
type_, _ = result.scheme.split("+", 1)
remote_url = remote_url[len(type_) + 1:]