···3636 parent := fullpath
3737 fullpath = path.Join(fullpath, part)
38383939- if _, ok := m[fullpath]; ok {
3939+ // It's possible that the first occurrence of subdirectory is skipped.
4040+ // The parent node can be created with SkipWorktree set to true, but
4141+ // if any future children do not skip their subtree, the entire lineage
4242+ // of the tree needs to have this value set to false so that subdirectories
4343+ // are not ignored.
4444+ if parentNode, ok := m[fullpath]; ok {
4545+ if e.SkipWorktree == false {
4646+ parentNode.skip = false
4747+ }
4048 continue
4149 }
4250