Skip to content

Commit

Permalink
t2026: fix broken &&-chain
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Mar 20, 2015
1 parent ecf2ff6 commit 807e3ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/t2026-prune-linked-checkouts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ test_expect_success 'prune directories with gitdir pointing to nowhere' '
'

test_expect_success 'not prune locked checkout' '
test_when_finished rm -r .git/worktrees
test_when_finished rm -r .git/worktrees &&
mkdir -p .git/worktrees/ghi &&
: >.git/worktrees/ghi/locked &&
git prune --worktrees &&
test -d .git/worktrees/ghi
'

test_expect_success 'not prune recent checkouts' '
test_when_finished rm -r .git/worktrees
test_when_finished rm -r .git/worktrees &&
mkdir zz &&
mkdir -p .git/worktrees/jlm &&
echo "$(pwd)"/zz >.git/worktrees/jlm/gitdir &&
Expand Down

0 comments on commit 807e3ca

Please sign in to comment.