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
74
74
75
75
var defaultIgnoreLines = []string {
76
76
".cfignore" ,
77
- "manifest.yml" ,
77
+ "/ manifest.yml" ,
78
78
".gitignore" ,
79
79
".git" ,
80
80
".hg" ,
Original file line number Diff line number Diff line change @@ -58,4 +58,22 @@ stuff/exclude.c`)
58
58
ignore = NewCfIgnore (`!.git` )
59
59
Expect (ignore .FileShouldBeIgnored (".git/objects" )).To (BeFalse ())
60
60
})
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
+ })
61
79
})
You can’t perform that action at this time.
0 commit comments