summaryrefslogtreecommitdiff
path: root/t/t1002-read-tree-m-u-2way.sh
diff options
context:
space:
mode:
authorLibravatar Rafael Silva <rafaeloliveira.cs@gmail.com>2021-01-27 09:03:07 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-01-30 09:57:24 -0800
commit47409e75f5ce85d356e5faf77e13d395137eaa46 (patch)
tree11b5d6d9ae5218a4deae86bd141c6da176de0946 /t/t1002-read-tree-m-u-2way.sh
parentworktree: teach worktree_lock_reason() to gently handle main worktree (diff)
downloadtgif-47409e75f5ce85d356e5faf77e13d395137eaa46.tar.xz
t2402: ensure locked worktree is properly cleaned up
c57b3367be (worktree: teach `list` to annotate locked worktree, 2020-10-11) introduced a new test to ensure locked worktrees are listed with "locked" annotation. However, the test does not clean up after itself as "git worktree prune" is not going to remove the locked worktree in the first place. This not only leaves the test in an unclean state it also potentially breaks following tests that rely on the "git worktree list" output. Let's fix that by unlocking the worktree before the "prune" command. Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Rafael Silva <rafaeloliveira.cs@gmail.com> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1002-read-tree-m-u-2way.sh')
0 files changed, 0 insertions, 0 deletions