t0027: do not use an empty string as a pathspec element
[gitweb.git] / t / t3001-ls-files-others-exclude.sh
index 2a13af17585d6af89943d65cf1dc6edf407f01fa..3fc484e8c3f8d910f02e409baf7bf1d5682b4f2f 100755 (executable)
@@ -294,7 +294,7 @@ one/a.1
 one/two/a.1
 three/a.1
 EOF
-       git ls-files -o -i --exclude "**/a.1" >actual
+       git ls-files -o -i --exclude "**/a.1" >actual &&
        test_cmp expect actual
 '
 
@@ -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