fix(git): respect env vars

Fixes #895
This commit is contained in:
Lewis Russell 2023-10-02 12:15:36 +01:00 committed by Lewis Russell
parent 317c98d64c
commit 609fffa462
1 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,9 @@ local git_command = async.create(function(args, spec)
spec.text = true
end
-- Fix #895. Only needed for Nvim 0.9 and older
spec.clear_env = true
--- @type vim.SystemCompleted
local obj = asystem(cmd, spec)
local stdout = obj.stdout