forked from coop-cloud/abra
fix: log discovered paths
This commit is contained in:
parent
8e56607cc9
commit
8393f4b134
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue