]> git.ipfire.org Git - thirdparty/git.git/commit - t/t1450-fsck.sh
t1450: convert tests to remove worktrees via git-worktree(1)
authorPatrick Steinhardt <ps@pks.im>
Thu, 2 Nov 2023 08:46:57 +0000 (09:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Nov 2023 23:37:06 +0000 (08:37 +0900)
commitc603138e3d5bae3991fcf2ba98f09b0ea3beb056
tree7458e9e5ed4e0bfabca44d4cc900a66c3d7012ba
parent668e31c690b821b9aba0fc6d11f483b1d154682a
t1450: convert tests to remove worktrees via git-worktree(1)

Some of our tests in t1450 create worktrees and then corrupt them.
As it is impossible to delete such worktrees via a normal call to `git
worktree remove`, we instead opt to remove them manually by calling
rm(1) instead.

This is ultimately unnecessary though as we can use the `-f` switch to
remove the worktree. Let's convert the tests to do so such that we don't
have to reach into internal implementation details of worktrees.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1450-fsck.sh