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,8 +68,10 @@ function M.spawn(cmd, opts)
|
|||
for key, value in
|
||||
pairs(uv.os_environ() --[[@as string[] ]])
|
||||
do
|
||||
if key ~= "GIT_DIR" then
|
||||
table.insert(env, key .. "=" .. value)
|
||||
end
|
||||
end
|
||||
|
||||
local stdout = uv.new_pipe()
|
||||
local stderr = uv.new_pipe()
|
||||
|
|
Loading…
Reference in New Issue