t2026: fix broken &&-chain
authorJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2015 17:44:12 +0000 (10:44 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2015 17:53:57 +0000 (10:53 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2026-prune-linked-checkouts.sh
index 2936d52a9c7f860ea9fe3c195b18e9891fc5908f..e885bafc97f73cd6f86581e7d5a40b1575b15e04 100755 (executable)
@@ -65,7 +65,7 @@ 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 &&
@@ -73,7 +73,7 @@ test_expect_success 'not prune locked checkout' '
 '
 
 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 &&