File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ type cfIgnore []ignorePattern
7474
7575var defaultIgnoreLines = []string {
7676 ".cfignore" ,
77- "manifest.yml" ,
77+ "/ manifest.yml" ,
7878 ".gitignore" ,
7979 ".git" ,
8080 ".hg" ,
Original file line number Diff line number Diff line change @@ -58,4 +58,22 @@ stuff/exclude.c`)
5858 ignore = NewCfIgnore (`!.git` )
5959 Expect (ignore .FileShouldBeIgnored (".git/objects" )).To (BeFalse ())
6060 })
61+
62+ Describe ("files named manifest.yml" , func () {
63+ var (
64+ ignore CfIgnore
65+ )
66+
67+ BeforeEach (func () {
68+ ignore = NewCfIgnore ("" )
69+ })
70+
71+ It ("ignores manifest.yml at the top level" , func () {
72+ Expect (ignore .FileShouldBeIgnored ("manifest.yml" )).To (BeTrue ())
73+ })
74+
75+ It ("does not ignore nested manifest.yml files" , func () {
76+ Expect (ignore .FileShouldBeIgnored ("public/assets/manifest.yml" )).To (BeFalse ())
77+ })
78+ })
6179})
You can’t perform that action at this time.
0 commit comments