X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3060-ls-files-with-tree.sh;h=61c1f53d1b75302be60396d2e01ccd5da5b6e5b4;hb=f6be8fbcbafe552a8b60b9c9394203a752de5e06;hp=3ce501bb9794900b99fbbf2f2ccfbb330f7947a7;hpb=71f1d729b39ce5c92df6d623151f88bbb5d4c774;p=git.git diff --git a/t/t3060-ls-files-with-tree.sh b/t/t3060-ls-files-with-tree.sh index 3ce501bb9..61c1f53d1 100755 --- a/t/t3060-ls-files-with-tree.sh +++ b/t/t3060-ls-files-with-tree.sh @@ -53,17 +53,15 @@ test_expect_success setup ' git add . ' -# We have to run from a sub-directory to trigger prune_path -# Then we finally get to run our --with-tree test -cd sub - test_expect_success 'git -ls-files --with-tree should succeed from subdir' ' - - git ls-files --with-tree=HEAD~1 >../output - + # We have to run from a sub-directory to trigger prune_path + # Then we finally get to run our --with-tree test + ( + cd sub && + git ls-files --with-tree=HEAD~1 >../output + ) ' -cd .. test_expect_success \ 'git -ls-files --with-tree should add entries from named tree.' \ 'test_cmp expected output'