Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClemens Buchacher <drizzd@aon.at>2010-06-03 17:39:18 +0400
committerJunio C Hamano <gitster@pobox.com>2010-06-05 20:14:31 +0400
commitefad1a5615e80637dcb38c8eaa1e35c03b24169f (patch)
tree5c25b294cd71757abb74733596b30049e1c0045a /t/t7010-setup.sh
parentb167cffb6b38a092e8f9e0e396c1931ee1dc8b7d (diff)
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 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
'