X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3060-ls-files-with-tree.sh;h=61c1f53d1b75302be60396d2e01ccd5da5b6e5b4;hb=28368e9f0bced688e4baf3b02b1bfcb6580909c4;hp=3ce501bb9794900b99fbbf2f2ccfbb330f7947a7;hpb=f8c62880ef22b74ea6df47bb349ff0743d2a93f9;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'