review & forgotten fixes from other PR

This commit is contained in:
Simon Frei
2018-03-18 01:42:31 +01:00
committed by Audrius Butkevicius
parent ae74ac8329
commit 81bd428b25
5 changed files with 18 additions and 16 deletions

View File

@@ -1428,7 +1428,8 @@ func (m *Model) GetIgnores(folder string) ([]string, []string, error) {
}
}
if err := cfg.CheckPath(); err != nil {
// On creation a new folder with ignore patterns validly has no marker yet.
if err := cfg.CheckPath(); err != nil && err != config.ErrMarkerMissing {
return nil, nil, err
}