From: Tobias Ulmer Date: Wed, 6 Mar 2013 18:56:35 +0000 (+0100) Subject: Add git url support to git plugin X-Git-Tag: e2factory-2.3.13rc3~2 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=732aa0fae8bed8d812cbb6e96af45380b929f4d1;p=e2factory.git Add git url support to git plugin Suggested by patch from CADCON Signed-off-by: Tobias Ulmer --- diff --git a/generic/generic_git.lua b/generic/generic_git.lua index 6dc3143..fdd25ed 100644 --- a/generic/generic_git.lua +++ b/generic/generic_git.lua @@ -287,10 +287,9 @@ function generic_git.git_url1(u) giturl = string.format("git+ssh://%s/%s", u.server, u.path) elseif u.transport == "file" then giturl = string.format("/%s", u.path) - elseif u.transport == "http" then - giturl = string.format("http://%s/%s", u.server, u.path) - elseif u.transport == "https" then - giturl = string.format("https://%s/%s", u.server, u.path) + elseif u.transport == "http" or u.transport == "https" or + u.transport == "git" then + giturl = string.format("%s://%s/%s", u.transport, u.server, u.path) else return nil, err.new("git_url1: transport not supported: %s", u.transport) end