Do not run hooks when rewording via amend

IDEA-223970

GitOrigin-RevId: cb50d636d3c260cea6c447bd3118528e3b90c32d
This commit is contained in:
Dmitriy Smirnov
2019-10-03 15:36:00 +00:00
committed by intellij-monorepo-bot
parent 65c800c41c
commit 0b881c49cb
@@ -100,6 +100,7 @@ class GitRewordOperation(private val repository: GitRepository,
handler.addParameters("-F")
handler.addAbsoluteFile(messageFile)
handler.addParameters("--only") // without any files: to amend only the message
handler.addParameters("--no-verify") // to prevent unnecessary hooks execution
val result = Git.getInstance().runCommand(handler)
repository.update()