fix(git): add --no-show-signature. Fixes #218

This commit is contained in:
Folke Lemaitre 2022-12-29 01:02:05 +01:00
parent c8553ca44f
commit 6c0b803999
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,7 @@ local uv = vim.loop
---@field on_line? fun(string)
---@field on_exit? fun(ok:boolean, output:string)
---@field timeout? number
---@field env? string[]
---@param opts? ProcessOpts
function M.spawn(cmd, opts)
@ -21,6 +22,9 @@ function M.spawn(cmd, opts)
"GIT_TERMINAL_PROMPT=0",
"GIT_SSH_COMMAND=ssh -oBatchMode=yes",
}
if opts.env then
vim.list_extend(env, opts.env)
end
for key, value in
pairs(uv.os_environ() --[[@as string[] ]])

View File

@ -26,6 +26,7 @@ M.log = {
"--decorate",
"--date=short",
"--color=never",
"--no-show-signature",
}
if opts.updated then