From c1a05a5f9b29fb13424a0fe8e981a7a8c95390f1 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 30 Nov 2022 23:44:10 +0100 Subject: [PATCH] test: process config timeout can be nil --- lua/lazy/manage/process.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/manage/process.lua b/lua/lazy/manage/process.lua index 9530178..633d12d 100644 --- a/lua/lazy/manage/process.lua +++ b/lua/lazy/manage/process.lua @@ -15,7 +15,7 @@ local uv = vim.loop ---@param opts? ProcessOpts function M.spawn(cmd, opts) opts = opts or {} - opts.timeout = opts.timeout or (Config.options.git.timeout * 1000) + opts.timeout = opts.timeout or (Config.options.git and Config.options.git.timeout * 1000) local env = { "GIT_TERMINAL_PROMPT=0",