diff options
| author | Pablo Sabater <pabloosabaterr@gmail.com> | 2026-03-30 13:18:21 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-30 12:52:40 -0700 |
| commit | b310755ecaf4459eddd4f602b3cb02e793c01177 (patch) | |
| tree | 7d3bbbdc08e3fa25972e30296d1193f6fc720f21 /t | |
| parent | 80871f356e88d23cc32cd852fd4a4548e861f47c (diff) | |
| download | git-b310755ecaf4459eddd4f602b3cb02e793c01177.tar.xz | |
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>
Diffstat (limited to 't')
| -rwxr-xr-x | t/t5516-fetch-push.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh index f44250c38f..c40f2790d8 100755 --- a/t/t5516-fetch-push.sh +++ b/t/t5516-fetch-push.sh @@ -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 && |
