fix(git): unset GIT_INDEX_FILE so we dont accidentally overwrite a different git repo. Fixes #1107

This commit is contained in:
Folke Lemaitre 2023-10-12 12:23:39 +02:00
parent 117556d9e7
commit 7f70dd1749
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ function M.spawn(cmd, opts)
env.GIT_DIR = nil
env.GIT_WORK_TREE = nil
env.GIT_TERMINAL_PROMPT = "0"
env.GIT_INDEX_FILE = nil
---@type string[]
local env_flat = {}