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

@@ -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