manager: ignore .git dir in corpus

For the case the corpus is checked into git.
This commit is contained in:
Dmitry Vyukov 2016-08-28 10:48:21 +02:00
parent 7690667267
commit 776431e726

View File

@ -37,6 +37,9 @@ func newPersistentSet(dir string, verify func(data []byte) bool) *PersistentSet
log.Fatalf("error during dir walk: %v\n", err)
}
if info.IsDir() {
if info.Name() == ".git" {
return filepath.SkipDir // in case corpus is checked in
}
return nil
}
data, err := ioutil.ReadFile(path)