From: Harald Nordgren via GitGitGadget Date: Sun, 14 Jun 2026 19:25:40 GMT Subject: [PATCH 1/2] t3415: remove prepare-commit-msg hook after use Message-ID: In-Reply-To: From: Harald Nordgren 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 --- 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