lib/ignore, lib/scanner: Fix recursion to catch included paths (fixes #5009) (#5010)

This commit is contained in:
Simon Frei
2018-06-18 08:22:19 +02:00
committed by Jakob Borg
parent 84c8964865
commit 8ff7ceeddc
3 changed files with 36 additions and 3 deletions

View File

@@ -173,7 +173,7 @@ func (m *Matcher) parseLocked(r io.Reader, file string) error {
m.skipIgnoredDirs = true
for _, p := range patterns {
if p.result&resultInclude == resultInclude {
if !p.result.IsIgnored() {
m.skipIgnoredDirs = false
break
}