Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lua/mini/deps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,10 @@ H.cli_run = function(jobs)
-- Prepare data for `vim.loop.spawn`
local executable, args = command[1], vim.list_slice(command, 2, #command)
local process, stdout, stderr = nil, vim.loop.new_pipe(), vim.loop.new_pipe()
local spawn_opts = { args = args, cwd = cwd, stdio = { nil, stdout, stderr } }
local env = { GIT_WORK_TREE = cwd, GIT_DIR = vim.fs.joinpath(cwd, '.git') }
if not vim.uv.fs_stat(env.GIT_DIR) then env = {} end

local spawn_opts = { args = args, cwd = cwd, env = env, stdio = { nil, stdout, stderr } }

local on_exit = function(code)
-- Process only not already closing job
Expand Down
Loading