fix: wrong path

This commit is contained in:
sxyazi
2024-09-04 13:40:49 +08:00
parent c2c354e13d
commit 63beb7528b

View File

@@ -153,9 +153,9 @@ local function fetch(self)
end
end
for _, f in ipairs(self.files) do
local name = f.url:name()
changes[name] = changes[name] or 0
for _, p in ipairs(paths) do
local s = p:sub(#repo + 2)
changes[s] = changes[s] or 0
end
add(tostring(cwd), repo, changes)