t2400: cleanup created worktree in test

Signed-off-by: Jacob Abel <jacobabel@nullpo.dev>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jacob Abel
2023-05-17 21:48:28 +00:00
committed by Junio C Hamano
parent b71f919dda
commit 1b28fbd218

View File

@ -326,6 +326,7 @@ test_expect_success 'add -B' '
'
test_expect_success 'add --quiet' '
test_when_finished "git worktree remove -f -f another-worktree" &&
git worktree add --quiet another-worktree main 2>actual &&
test_must_be_empty actual
'