()
| 6 | ) |
| 7 | |
| 8 | func (c *Config) loadOrgConfigs() error { |
| 9 | // Bail early if we don't need to load anything. |
| 10 | if !c.Options.OrgConfig { |
| 11 | return nil |
| 12 | } |
| 13 | |
| 14 | errors := make([]error, 0, len(c.Orgs)) |
| 15 | |
| 16 | for orgName := range c.Orgs { |
| 17 | errors = append(errors, c.loadOrgConfig(orgName)) |
| 18 | } |
| 19 | |
| 20 | // Because we want to display all the errors, we return this as a |
| 21 | // multi-error rather than bailing on the first error. |
| 22 | return newMultiError(errors...) |
| 23 | } |
| 24 | |
| 25 | func (c *Config) loadOrgConfig(orgName string) error { |
| 26 | orgRepo, err := git.EnsureRepo(c.fs, "admin/org-"+orgName) |
no test coverage detected