From 0b881c49cb569fc2005aec3d64f843aeb4d6edb2 Mon Sep 17 00:00:00 2001 From: Dmitriy Smirnov Date: Wed, 2 Oct 2019 15:08:48 +0300 Subject: [PATCH] Do not run hooks when rewording via amend IDEA-223970 GitOrigin-RevId: cb50d636d3c260cea6c447bd3118528e3b90c32d --- plugins/git4idea/src/git4idea/rebase/GitRewordOperation.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/git4idea/src/git4idea/rebase/GitRewordOperation.kt b/plugins/git4idea/src/git4idea/rebase/GitRewordOperation.kt index 6416d4dcfb82..43ebbe4e5aac 100644 --- a/plugins/git4idea/src/git4idea/rebase/GitRewordOperation.kt +++ b/plugins/git4idea/src/git4idea/rebase/GitRewordOperation.kt @@ -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()