[PATCH v2 1/2] t3415: remove prepare-commit-msg hook after use
From: Harald Nordgren via GitGitGadget <hidden>
Date: 2026-06-15 08:37:08
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Harald Nordgren via GitGitGadget <hidden>
Date: 2026-06-15 08:37:08
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Harald Nordgren <redacted> The "pick and fixup respect commit.cleanup" test left its prepare-commit-msg hook in place, leaking it into later tests. Remove it with test_when_finished. Signed-off-by: Harald Nordgren <redacted> --- t/t3415-rebase-autosquash.sh | 1 + 1 file changed, 1 insertion(+)
diff --git a/t/t3415-rebase-autosquash.sh b/t/t3415-rebase-autosquash.sh
index 5033411a43..8964d1cc88 100755
--- a/t/t3415-rebase-autosquash.sh
+++ b/t/t3415-rebase-autosquash.sh@@ -490,6 +490,7 @@ test_expect_success 'pick and fixup respect commit.cleanup' ' git reset --hard base && test_commit --no-tag "fixup! second commit" file1 fixup && test_commit something && + test_when_finished "rm -f .git/hooks/prepare-commit-msg" && write_script .git/hooks/prepare-commit-msg <<-\EOF && printf "\n# Prepared\n" >> "$1" EOF
--
gitgitgadget