summaryrefslogtreecommitdiff
path: root/t/t7010-setup.sh
diff options
context:
space:
mode:
authorClemens Buchacher <drizzd@aon.at>2010-06-03 13:39:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-06-05 16:14:31 (GMT)
commitefad1a5615e80637dcb38c8eaa1e35c03b24169f (patch)
tree5c25b294cd71757abb74733596b30049e1c0045a /t/t7010-setup.sh
parentb167cffb6b38a092e8f9e0e396c1931ee1dc8b7d (diff)
downloadgit-efad1a5615e80637dcb38c8eaa1e35c03b24169f.zip
git-efad1a5615e80637dcb38c8eaa1e35c03b24169f.tar.gz
git-efad1a5615e80637dcb38c8eaa1e35c03b24169f.tar.bz2
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-xt/t7010-setup.sh12
1 files changed, 4 insertions, 8 deletions
diff --git a/t/t7010-setup.sh b/t/t7010-setup.sh
index d8a7c79..0335a9a 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
'