diff options
Diffstat (limited to 'third_party/git/t/t2402-worktree-list.sh')
-rwxr-xr-x | third_party/git/t/t2402-worktree-list.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/git/t/t2402-worktree-list.sh b/third_party/git/t/t2402-worktree-list.sh index bb6fb9b12cb7..69ffe865b439 100755 --- a/third_party/git/t/t2402-worktree-list.sh +++ b/third_party/git/t/t2402-worktree-list.sh @@ -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 |