mirror of https://github.com/folke/lazy.nvim.git
fix(git): unset GIT_DIR when spawning a process. Fixes #434
This commit is contained in:
parent
75dcd5741d
commit
9858001c3c
|
@ -68,7 +68,9 @@ function M.spawn(cmd, opts)
|
||||||
for key, value in
|
for key, value in
|
||||||
pairs(uv.os_environ() --[[@as string[] ]])
|
pairs(uv.os_environ() --[[@as string[] ]])
|
||||||
do
|
do
|
||||||
table.insert(env, key .. "=" .. value)
|
if key ~= "GIT_DIR" then
|
||||||
|
table.insert(env, key .. "=" .. value)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local stdout = uv.new_pipe()
|
local stdout = uv.new_pipe()
|
||||||
|
|
Loading…
Reference in New Issue