(fc *format.Config, submodules map[string]*Submodule)
| 394 | } |
| 395 | |
| 396 | func unmarshalSubmodules(fc *format.Config, submodules map[string]*Submodule) { |
| 397 | s := fc.Section(submoduleSection) |
| 398 | for _, sub := range s.Subsections { |
| 399 | m := &Submodule{} |
| 400 | m.unmarshal(sub) |
| 401 | |
| 402 | if err := m.Validate(); errors.Is(err, ErrModuleBadPath) || |
| 403 | errors.Is(err, ErrModuleBadName) { |
| 404 | continue |
| 405 | } |
| 406 | |
| 407 | submodules[m.Name] = m |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | func (c *Config) unmarshalBranches() error { |
| 412 | bs := c.Raw.Section(branchSection) |