Skip to content

Commit

Permalink
fix(git): add --no-show-signature. Fixes #218
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 29, 2022
1 parent c8553ca commit 6c0b803
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/lazy/manage/process.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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[] ]])
Expand Down
1 change: 1 addition & 0 deletions lua/lazy/manage/task/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ M.log = {
"--decorate",
"--date=short",
"--color=never",
"--no-show-signature",
}

if opts.updated then
Expand Down

0 comments on commit 6c0b803

Please sign in to comment.