summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-01-20 11:43:33 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-01-20 11:43:33 -0800
commit76b620d8166bf4cc7cadbc61f9927799ceea9162 (patch)
tree5cbea926379d763fb0de6fcdd2d8d80f82629669 /t
parentMerge branch 'dk/reflog-walk-with-non-commit' (diff)
parentRevert "dir.c: don't exclude whole dir prematurely if neg pattern may match" (diff)
downloadtgif-76b620d8166bf4cc7cadbc61f9927799ceea9162.tar.xz
Merge branch 'nd/exclusion-regression-fix'
The ignore mechanism saw a few regressions around untracked file listing and sparse checkout selection areas in 2.7.0; the change that is responsible for the regression has been reverted. * nd/exclusion-regression-fix: Revert "dir.c: don't exclude whole dir prematurely if neg pattern may match"
Diffstat (limited to 't')
-rwxr-xr-xt/t3001-ls-files-others-exclude.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/t/t3001-ls-files-others-exclude.sh b/t/t3001-ls-files-others-exclude.sh
index da257c020f..3fc484e8c3 100755
--- a/t/t3001-ls-files-others-exclude.sh
+++ b/t/t3001-ls-files-others-exclude.sh
@@ -305,29 +305,4 @@ test_expect_success 'ls-files with "**" patterns and no slashes' '
test_cmp expect actual
'
-test_expect_success 'negative patterns' '
- git init reinclude &&
- (
- cd reinclude &&
- cat >.gitignore <<-\EOF &&
- /fooo
- /foo
- !foo/bar/bar
- EOF
- mkdir fooo &&
- cat >fooo/.gitignore <<-\EOF &&
- !/*
- EOF
- mkdir -p foo/bar &&
- touch abc foo/def foo/bar/ghi foo/bar/bar &&
- git ls-files -o --exclude-standard >../actual &&
- cat >../expected <<-\EOF &&
- .gitignore
- abc
- foo/bar/bar
- EOF
- test_cmp ../expected ../actual
- )
-'
-
test_done