MCPcopy Index your code
hub / github.com/go-git/go-git / lookupRemote

Function lookupRemote

submodule.go:219–228  ·  view source on GitHub ↗
(cfg *config.Config, name string)

Source from the content-addressed store, hash-verified

217}
218
219func 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

Callers 1

defaultRemoteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…