Push pushes the given refs to a remote repo.
(remote string, refSpecs ...string)
| 1197 | |
| 1198 | // Push pushes the given refs to a remote repo. |
| 1199 | func (repo *GitRepo) Push(remote string, refSpecs ...string) error { |
| 1200 | pushArgs := append([]string{"push", remote}, refSpecs...) |
| 1201 | err := repo.runGitCommandInline(pushArgs...) |
| 1202 | if err != nil { |
| 1203 | return fmt.Errorf("Failed to push the local refs to the remote '%s': %v", remote, err) |
| 1204 | } |
| 1205 | return nil |
| 1206 | } |
nothing calls this directly
no test coverage detected