Skip to content

Commit b719a31

Browse files
committed
perf(amendOnlyMsg): skip precommit since only editing msg anyway
1 parent e439531 commit b719a31

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lua/tinygit/commands/commit.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ function M.amendOnlyMsg(opts)
156156

157157
require("tinygit.commands.commit.msg-input").new("amend-msg", prompt, function(title, body)
158158
-- commit
159-
local commitArgs = { "git", "commit", "--amend", "--message=" .. title }
159+
-- (skip precommit via `--no-verify`, since only editing message)
160+
local commitArgs = { "git", "commit", "--no-verify", "--amend", "--message=" .. title }
160161
if body then table.insert(commitArgs, "--message=" .. body) end
161162
local result = vim.system(commitArgs):wait()
162163
if u.nonZeroExit(result) then return end

0 commit comments

Comments
 (0)