fix(process): unset GIT_WORK_TREE

This commit is contained in:
Folke Lemaitre 2023-03-04 18:20:27 +01:00
parent 8d18ef44e7
commit c60f7ea985
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ function M.spawn(cmd, opts)
GIT_SSH_COMMAND = "ssh -oBatchMode=yes",
}, uv.os_environ(), opts.env or {})
env.GIT_DIR = nil
env.GIT_WORK_TREE = nil
env.GIT_TERMINAL_PROMPT = "0"
---@type string[]