We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecf2ff6 commit 807e3caCopy full SHA for 807e3ca
t/t2026-prune-linked-checkouts.sh
@@ -65,15 +65,15 @@ test_expect_success 'prune directories with gitdir pointing to nowhere' '
65
'
66
67
test_expect_success 'not prune locked checkout' '
68
- test_when_finished rm -r .git/worktrees
+ test_when_finished rm -r .git/worktrees &&
69
mkdir -p .git/worktrees/ghi &&
70
: >.git/worktrees/ghi/locked &&
71
git prune --worktrees &&
72
test -d .git/worktrees/ghi
73
74
75
test_expect_success 'not prune recent checkouts' '
76
77
mkdir zz &&
78
mkdir -p .git/worktrees/jlm &&
79
echo "$(pwd)"/zz >.git/worktrees/jlm/gitdir &&
0 commit comments