(cfg *config.Config, name string)
| 217 | } |
| 218 | |
| 219 | func lookupRemote(cfg *config.Config, name string) (*config.RemoteConfig, error) { |
| 220 | rc, ok := cfg.Remotes[name] |
| 221 | if !ok { |
| 222 | return nil, fmt.Errorf("remote %q not found", name) |
| 223 | } |
| 224 | if len(rc.URLs) == 0 { |
| 225 | return nil, fmt.Errorf("remote %q has no configured URL", name) |
| 226 | } |
| 227 | return rc, nil |
| 228 | } |
| 229 | |
| 230 | // Update the registered submodule to match what the superproject expects, the |
| 231 | // submodule should be initialized first calling the Init method or setting in |
no outgoing calls
no test coverage detected
searching dependent graphs…