diff options
author | Clemens Buchacher <drizzd@aon.at> | 2010-06-03 15:39:18 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-05 09:14:31 -0700 |
commit | efad1a5615e80637dcb38c8eaa1e35c03b24169f (patch) | |
tree | 5c25b294cd71757abb74733596b30049e1c0045a /t/t7010-setup.sh | |
parent | b167cffb6b38a092e8f9e0e396c1931ee1dc8b7d (diff) | |
download | git-efad1a5615e80637dcb38c8eaa1e35c03b24169f.tar.gz |
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 <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7010-setup.sh')
-rwxr-xr-x | t/t7010-setup.sh | 12 |
1 files changed, 4 insertions, 8 deletions
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 ' |