Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions t/t2402-worktree-list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,10 @@ test_expect_success 'linked worktrees are sorted' '
test_cmp expected sorted/main/actual
'

test_expect_success 'worktree path when called in .git directory' '
git worktree list> list1 &&
git -C .git worktree list> list2 &&
test_cmp list1 list2
'

test_done