We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43c3600 commit b87c4bbCopy full SHA for b87c4bb
lua/rocks-git/git.lua
@@ -28,6 +28,10 @@ local nio = require("nio")
28
---@see vim.system
29
local function git_cli(args, on_exit, opts)
30
opts = opts or {}
31
+ opts.env = opts.env or {}
32
+ -- Edge case, see https://github.com/nvim-neorocks/rocks-git.nvim/issues/78
33
+ opts.env.GIT_DIR = nil
34
+ opts.env.GIT_WORK_TREE = nil
35
local git_cmd = vim.list_extend({
36
"git",
37
}, args)
0 commit comments