Add a failing test for a subdir ignoring itself
The .gitignore in foo causes foo itself to be ignored
This commit is contained in:
parent
57403a06d8
commit
484cd263a2
2 changed files with 4 additions and 0 deletions
|
|
@ -20,5 +20,6 @@ in
|
|||
subdir-3 = runner.makeTest { name = "subdir-3"; rootDir = testdata.sourceUnfiltered + "/test-tree"; subpath = "3-wildcards"; };
|
||||
subdir-4 = runner.makeTest { name = "subdir-4"; rootDir = testdata.sourceUnfiltered + "/test-tree"; subpath = "4-escapes"; };
|
||||
subdir-9 = runner.makeTest { name = "subdir-9"; rootDir = testdata.sourceUnfiltered + "/test-tree"; subpath = "9-expected"; };
|
||||
subdir-10 = runner.makeTest { name = "subdir-10"; rootDir = testdata.sourceUnfiltered + "/test-tree"; subpath = "10-subdir-ignoring-itself"; };
|
||||
|
||||
}
|
||||
|
|
@ -30,6 +30,9 @@ let
|
|||
touches 5-directory {1,2,3,4,5,^,$,^$,$^,[,[[,],]],]]],ab,bb,\\,\\\\}
|
||||
|
||||
touches 9-expected {unfiltered,filtered-via-aux-{filter,ignore,filepath}}
|
||||
|
||||
touches 10-subdir-ignoring-itself/foo {foo,bar}
|
||||
echo foo >10-subdir-ignoring-itself/foo/.gitignore
|
||||
); }
|
||||
|
||||
create-tree "$1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue