From 609fffa4629a97626bea6b13c4d1dd9bf215648a Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Mon, 2 Oct 2023 12:15:36 +0100 Subject: [PATCH] fix(git): respect env vars Fixes #895 --- lua/gitsigns/git.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/gitsigns/git.lua b/lua/gitsigns/git.lua index 2386703..e3caf6f 100644 --- a/lua/gitsigns/git.lua +++ b/lua/gitsigns/git.lua @@ -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