fix: avoid git lock index when fetching, closes #20
This commit is contained in:
@@ -155,9 +155,10 @@ local function fetch(self)
|
|||||||
paths[#paths + 1] = tostring(f.url)
|
paths[#paths + 1] = tostring(f.url)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- stylua: ignore
|
||||||
local output, err = Command("git")
|
local output, err = Command("git")
|
||||||
:cwd(tostring(cwd))
|
: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)
|
:args(paths)
|
||||||
:stdout(Command.PIPED)
|
:stdout(Command.PIPED)
|
||||||
:output()
|
:output()
|
||||||
|
|||||||
Reference in New Issue
Block a user