diff --git a/git.lua b/git.lua index 412436c..cdf1e5f 100644 --- a/git.lua +++ b/git.lua @@ -78,7 +78,7 @@ local function parseGiteaURL(url) } local lowerUrl = string.lower(url) if not string.endsWith(lowerUrl, ending) then error("A gitea link needs to end with " .. ending) end - for proto in protocols do + for _, proto in pairs(protocols) do if string.beginsWith(lowerUrl, proto) then info.protocol = proto break