mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix(git): unset GIT_DIR when spawning a process. Fixes #434
This commit is contained in:
parent
75dcd5741d
commit
9858001c3c
1 changed files with 3 additions and 1 deletions
|
@ -68,7 +68,9 @@ function M.spawn(cmd, opts)
|
|||
for key, value in
|
||||
pairs(uv.os_environ() --[[@as string[] ]])
|
||||
do
|
||||
table.insert(env, key .. "=" .. value)
|
||||
if key ~= "GIT_DIR" then
|
||||
table.insert(env, key .. "=" .. value)
|
||||
end
|
||||
end
|
||||
|
||||
local stdout = uv.new_pipe()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue