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
end end
for _, f in ipairs(self.files) do for _, p in ipairs(paths) do
local name = f.url:name() local s = p:sub(#repo + 2)
changes[name] = changes[name] or 0 changes[s] = changes[s] or 0
end end
add(tostring(cwd), repo, changes) add(tostring(cwd), repo, changes)