File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,8 @@ test_expect_success 'put a worktree under rebase' '
490
490
cd under-rebase &&
491
491
set_fake_editor &&
492
492
FAKE_LINES="edit 1" git rebase -i HEAD^ &&
493
- git worktree list | grep "under-rebase.*detached HEAD"
493
+ git worktree list >actual &&
494
+ grep "under-rebase.*detached HEAD" actual
494
495
)
495
496
'
496
497
@@ -531,7 +532,8 @@ test_expect_success 'checkout a branch under bisect' '
531
532
git bisect start &&
532
533
git bisect bad &&
533
534
git bisect good HEAD~2 &&
534
- git worktree list | grep "under-bisect.*detached HEAD" &&
535
+ git worktree list >actual &&
536
+ grep "under-bisect.*detached HEAD" actual &&
535
537
test_must_fail git worktree add new-bisect under-bisect &&
536
538
! test -d new-bisect
537
539
)
You can’t perform that action at this time.
0 commit comments