mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-09 23:33:34 -05:00
t5516: clean up cloned and new-wt in denyCurrentBranch and worktrees test
The 'denyCurrentBranch and worktrees' test creates a 'cloned' and a 'new-wt' but it doesn't clean them after the test. This makes other tests that use the same name after this one to fail. Add test_when_finished to clean them at the end. Signed-off-by: Pablo Sabater <pabloosabaterr@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
80871f356e
commit
b310755eca
@@ -1792,6 +1792,7 @@ test_expect_success 'updateInstead with push-to-checkout hook' '
|
||||
'
|
||||
|
||||
test_expect_success 'denyCurrentBranch and worktrees' '
|
||||
test_when_finished "rm -fr cloned && git worktree remove --force new-wt" &&
|
||||
git worktree add new-wt &&
|
||||
git clone . cloned &&
|
||||
test_commit -C cloned first &&
|
||||
|
||||
Reference in New Issue
Block a user