fix: avoid git lock index when fetching, closes #20

This commit is contained in:
sxyazi
2024-09-05 21:20:08 +08:00
parent 118ae4d1ca
commit 0573024ca2

View File

@@ -155,9 +155,10 @@ local function fetch(self)
paths[#paths + 1] = tostring(f.url)
end
-- stylua: ignore
local output, err = Command("git")
:cwd(tostring(cwd))
:args({ "-c", "core.quotePath=", "status", "--porcelain", "-unormal", "--no-renames", "--ignored=matching" })
:args({ "--no-optional-locks", "-c", "core.quotePath=", "status", "--porcelain", "-unormal", "--no-renames", "--ignored=matching" })
:args(paths)
:stdout(Command.PIPED)
:output()