chore(git): consistent error reporting on git failures
This commit is contained in:
@@ -25,6 +25,8 @@ function M.commit(opts)
|
||||
):wait()
|
||||
if result.code == 0 then
|
||||
initial = (result.stdout or ""):gsub("\n+$", "")
|
||||
else
|
||||
log.warning("git log -1 failed: %s", vim.trim(result.stderr or ""))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user