MCPcopy
hub / github.com/redspread/spread / Fetch

Method Fetch

pkg/project/remotes.go:56–63  ·  view source on GitHub ↗
(remoteName string, refspecs ...string)

Source from the content-addressed store, hash-verified

54}
55
56func (p *Project) Fetch(remoteName string, refspecs ...string) error {
57 remote, err := p.Remotes().Lookup(remoteName)
58 if err != nil {
59 return fmt.Errorf("Failed to lookup remote: %v", err)
60 }
61
62 return p.fetch(remote, refspecs...)
63}
64
65func (p *Project) FetchAnonymous(url string, refspecs ...string) error {
66 remote, err := p.Remotes().CreateAnonymous(url)

Callers 3

PullMethod · 0.95
fetchMethod · 0.80
globalDeployMethod · 0.80

Calls 2

RemotesMethod · 0.95
fetchMethod · 0.95

Tested by

no test coverage detected