Function
unmarshalSubmodules
(fc *format.Config, submodules map[string]*Submodule)
Source from the content-addressed store, hash-verified
| 373 | } |
| 374 | |
| 375 | func unmarshalSubmodules(fc *format.Config, submodules map[string]*Submodule) { |
| 376 | s := fc.Section(submoduleSection) |
| 377 | for _, sub := range s.Subsections { |
| 378 | m := &Submodule{} |
| 379 | m.unmarshal(sub) |
| 380 | |
| 381 | if m.Validate() == ErrModuleBadPath { |
| 382 | continue |
| 383 | } |
| 384 | |
| 385 | submodules[m.Name] = m |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | func (c *Config) unmarshalBranches() error { |
| 390 | bs := c.Raw.Section(branchSection) |
Tested by
no test coverage detected