Fetch fetches from the given remote using the supplied refspecs.
(remote string, refspecs ...string)
| 973 | |
| 974 | // Fetch fetches from the given remote using the supplied refspecs. |
| 975 | func (repo *GitRepo) Fetch(remote string, refspecs ...string) error { |
| 976 | args := []string{"fetch", remote} |
| 977 | args = append(args, refspecs...) |
| 978 | return repo.runGitCommandInline(args...) |
| 979 | } |
| 980 | |
| 981 | // PushNotes pushes git notes to a remote repo. |
| 982 | func (repo *GitRepo) PushNotes(remote, notesRefPattern string) error { |
no test coverage detected