From efad1a5615e80637dcb38c8eaa1e35c03b24169f Mon Sep 17 00:00:00 2001 From: Clemens Buchacher Date: Thu, 3 Jun 2010 15:39:18 +0200 Subject: ls-files: allow relative pathspec git ls-files used to error out if given paths which point outside the current working directory, such as '../'. We now allow such paths and the output is analogous to git grep -l. Signed-off-by: Clemens Buchacher Signed-off-by: Junio C Hamano --- t/t7010-setup.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 't') diff --git a/t/t7010-setup.sh b/t/t7010-setup.sh index d8a7c79852..0335a9a158 100755 --- a/t/t7010-setup.sh +++ b/t/t7010-setup.sh @@ -103,14 +103,10 @@ test_expect_success 'git ls-files (relative #3)' ' git add a && ( cd a/b && - if git ls-files "../e/f" - then - echo Gaah, should have failed - exit 1 - else - : happy - fi - ) + git ls-files "../e/f" + ) >current && + echo ../e/f >expect && + test_cmp expect current ' -- cgit v1.2.1