branch support
This commit is contained in:
@@ -8,8 +8,9 @@ function gitfs.mount(dir, user, repo, branch)
|
||||
end
|
||||
|
||||
local list = git.list(user, repo, branch)
|
||||
for path, url in pairs(list) do
|
||||
fs.mount(fs.combine(dir, path), 'urlfs', url)
|
||||
for path, entry in pairs(list) do
|
||||
local node = fs.mount(fs.combine(dir, path), 'urlfs', entry.url)
|
||||
node.size = entry.size
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user