(remote *git.Remote, refspecs ...string)
| 72 | } |
| 73 | |
| 74 | func (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 | } |
no test coverage detected