]> git.e2factory.org Git - e2factory.git/commitdiff
Add git url support to git plugin
authorTobias Ulmer <tu@emlix.com>
Wed, 6 Mar 2013 18:56:35 +0000 (19:56 +0100)
committerTobias Ulmer <tu@emlix.com>
Thu, 7 Mar 2013 16:25:04 +0000 (17:25 +0100)
Suggested by patch from CADCON

Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/generic_git.lua

index 6dc3143f56664374bb05f3ba421e40b2fec226fe..fdd25edbe40c0754c6e8c9b0b429ddedcb16c16c 100644 (file)
@@ -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