From 85551e279ad3aa2a974743631ffd7bc95c6771d1 Mon Sep 17 00:00:00 2001 From: Ysrael Carmona Date: Mon, 18 Nov 2024 09:18:55 +0800 Subject: [PATCH] Add --no-verify to commit statement to always skip hook --- src/Vcs/Git/GitVcs.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vcs/Git/GitVcs.cs b/src/Vcs/Git/GitVcs.cs index 3a3133d..4bb7404 100644 --- a/src/Vcs/Git/GitVcs.cs +++ b/src/Vcs/Git/GitVcs.cs @@ -17,7 +17,7 @@ public void Commit(string csProjFilePath, string message) throw new OperationCanceledException($"Unable to add cs proj file {csProjFilePath} to git index"); } - if(!LaunchGitWithArgs($"commit -m \"{message}\"")) + if(!LaunchGitWithArgs($"commit --no-verify -m \"{message}\"")) { throw new OperationCanceledException("Unable to commit"); }