Skip to content

Commit 6c0b803

Browse files
committed
fix(git): add --no-show-signature. Fixes #218
1 parent c8553ca commit 6c0b803

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lua/lazy/manage/process.lua

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ local uv = vim.loop
1111
---@field on_line? fun(string)
1212
---@field on_exit? fun(ok:boolean, output:string)
1313
---@field timeout? number
14+
---@field env? string[]
1415

1516
---@param opts? ProcessOpts
1617
function M.spawn(cmd, opts)
@@ -21,6 +22,9 @@ function M.spawn(cmd, opts)
2122
"GIT_TERMINAL_PROMPT=0",
2223
"GIT_SSH_COMMAND=ssh -oBatchMode=yes",
2324
}
25+
if opts.env then
26+
vim.list_extend(env, opts.env)
27+
end
2428

2529
for key, value in
2630
pairs(uv.os_environ() --[[@as string[] ]])

lua/lazy/manage/task/git.lua

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ M.log = {
2626
"--decorate",
2727
"--date=short",
2828
"--color=never",
29+
"--no-show-signature",
2930
}
3031

3132
if opts.updated then

0 commit comments

Comments
 (0)