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

Method fetch

pkg/project/remotes.go:74–85  ·  view source on GitHub ↗
(remote *git.Remote, refspecs ...string)

Source from the content-addressed store, hash-verified

72}
73
74func (p *Project) fetch(remote *git.Remote, refspecs ...string) (err error) {
75 opts := &git.FetchOptions{
76 RemoteCallbacks: remoteCallbacks,
77 }
78
79 // fetch with default reflog message
80 err = remote.Fetch(refspecs, opts, "")
81 if err != nil {
82 return fmt.Errorf("Failed to fetch: %v", err)
83 }
84 return
85}

Callers 2

FetchMethod · 0.95
FetchAnonymousMethod · 0.95

Calls 1

FetchMethod · 0.80

Tested by

no test coverage detected