test: process config timeout can be nil

This commit is contained in:
Folke Lemaitre 2022-11-30 23:44:10 +01:00
parent bd2d64230f
commit c1a05a5f9b
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ local uv = vim.loop
---@param opts? ProcessOpts ---@param opts? ProcessOpts
function M.spawn(cmd, opts) function M.spawn(cmd, opts)
opts = opts or {} 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 = { local env = {
"GIT_TERMINAL_PROMPT=0", "GIT_TERMINAL_PROMPT=0",