summaryrefslogtreecommitdiff
path: root/t/t7504-commit-msg-hook.sh
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2021-10-29 15:45:45 +0200
committerJunio C Hamano <gitster@pobox.com>2021-10-29 11:22:56 -0700
commitfa21296b58e5b2c865a3974e5f03b65f4026c510 (patch)
tree5a7bd641c9192cec6311a242012060a807f87c6f /t/t7504-commit-msg-hook.sh
parente9e5ba39a78c8f5057262d49e261b42a8660d5b9 (diff)
downloadgit-fa21296b58e5b2c865a3974e5f03b65f4026c510.tar.gz
Document positive variant of commit and merge option "--no-verify"
This documents "--verify" option of the commands. It can be used to re-enable the hooks disabled by an earlier "--no-verify" in command-line. Signed-off-by: Alexander Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7504-commit-msg-hook.sh')
-rwxr-xr-xt/t7504-commit-msg-hook.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t7504-commit-msg-hook.sh b/t/t7504-commit-msg-hook.sh
index 4e7592522a..bba58f0480 100755
--- a/t/t7504-commit-msg-hook.sh
+++ b/t/t7504-commit-msg-hook.sh
@@ -133,6 +133,14 @@ test_expect_success '--no-verify with failing hook' '
'
+test_expect_success '-n followed by --verify with failing hook' '
+
+ echo "even more" >> file &&
+ git add file &&
+ test_must_fail git commit -n --verify -m "even more"
+
+'
+
test_expect_success '--no-verify with failing hook (editor)' '
echo "more stuff" >> file &&