Strip trailing slash from Gitea repository path in listGitea function
This commit is contained in:
@@ -67,6 +67,7 @@ end
|
|||||||
|
|
||||||
-- Gitea: gitea://host/user/repo/branch/subdir/
|
-- Gitea: gitea://host/user/repo/branch/subdir/
|
||||||
local function listGitea(host, remainder)
|
local function listGitea(host, remainder)
|
||||||
|
remainder = remainder:gsub('/$', '') -- strip trailing slash
|
||||||
local t = Util.split(remainder, '(.-)/')
|
local t = Util.split(remainder, '(.-)/')
|
||||||
local user = table.remove(t, 1)
|
local user = table.remove(t, 1)
|
||||||
local repo = table.remove(t, 1)
|
local repo = table.remove(t, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user