This commit is contained in:
2026-08-21 23:30:22 +02:00
parent 02704ae595
commit ecffbdd55c
+2 -2
View File
@@ -58,7 +58,7 @@ function string.split(str, delimiter)
local returnTable = {}
for k in string.gmatch(str, "([^" .. delimiter .. "]+)")
do
returnTable[#returnTable] = k
returnTable[#returnTable + 1] = k
end
return returnTable
end
@@ -89,7 +89,7 @@ local function parseGiteaURL(url)
local urlParts = string.split(cleaned, "/")
if not (#urlParts) == 3 then error("Unexpected link length.") end
info.origin, info.owner, info.repo = urlParts[0], urlParts[1], urlParts[2]
info.origin, info.owner, info.repo = urlParts[1], urlParts[2], urlParts[3]
info.treeUrl =
("%s%s/api/v1/repos/%s/%s/git/trees/%s%s?recursive=1")