fix: log discovered paths

This commit is contained in:
decentral1se 2021-12-11 20:24:29 +01:00
parent 8e56607cc9
commit 8393f4b134
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 4 additions and 0 deletions

View File

@ -153,12 +153,16 @@ func parseExcludesFile(excludesfile string) ([]gitignore.Pattern, error) {
return nil, err
}
var pathsRaw []string
for _, s := range strings.Split(string(data), "\n") {
if !strings.HasPrefix(s, "#") && len(strings.TrimSpace(s)) > 0 {
pathsRaw = append(pathsRaw, s)
ps = append(ps, gitignore.ParsePattern(s, nil))
}
}
logrus.Debugf("read global ignore paths: %s", strings.Join(pathsRaw, " "))
return ps, nil
}