Strip trailing slash from Gitea repository path in listGitea function

This commit is contained in:
MayaTheShy
2026-03-22 18:27:47 -04:00
parent d0cb420a08
commit 83baef8f82

View File

@@ -67,6 +67,7 @@ end
-- Gitea: gitea://host/user/repo/branch/subdir/
local function listGitea(host, remainder)
remainder = remainder:gsub('/$', '') -- strip trailing slash
local t = Util.split(remainder, '(.-)/')
local user = table.remove(t, 1)
local repo = table.remove(t, 1)