lib/scanner: Check ignore patterns before reporting error (fixes #5397) (#5398)

This commit is contained in:
Simon Frei
2018-12-21 12:08:15 +01:00
committed by Jakob Borg
parent fc81e2b3d7
commit 99c9d65ddf
2 changed files with 15 additions and 14 deletions

View File

@@ -252,6 +252,7 @@ func TestNormalization(t *testing.T) {
func TestIssue1507(t *testing.T) {
w := &walker{}
w.Matcher = ignore.New(w.Filesystem)
h := make(chan protocol.FileInfo, 100)
f := make(chan ScanResult, 100)
fn := w.walkAndHashFiles(context.TODO(), h, f)