Skip to content

Commit

Permalink
fix(git): unset GIT_INDEX_FILE so we dont accidentally overwrite a di…
Browse files Browse the repository at this point in the history
…fferent git repo. Fixes #1107
  • Loading branch information
folke committed Oct 12, 2023
1 parent 117556d commit 7f70dd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lazy/manage/process.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 7f70dd1

Please sign in to comment.