1
0
mirror of https://github.com/kepler155c/opus synced 2025-12-16 13:18:06 +00:00

branch support

This commit is contained in:
kepler155c@gmail.com
2017-05-19 20:55:19 -04:00
parent 8ecfea1524
commit 558d271ae0
4 changed files with 18 additions and 4 deletions

View File

@@ -31,7 +31,10 @@ function git.list(user, repo, branch)
for k,v in pairs(data.tree) do
if v.type == "blob" then
v.path = v.path:gsub("%s","%%20")
list[v.path] = string.format(FILE_URL, user, repo, branch, v.path)
list[v.path] = {
url = string.format(FILE_URL, user, repo, branch, v.path),
size = v.size,
}
end
end