prow/git/git.go
func (r *Repo) Push(repo, branch string) error {
	if r.user == "" || r.pass == "" {
		return errors.New("cannot push without credentials - configure your git client")
	}
	r.logger.Infof("Pushing to '%s/%s (branch: %s)'.", r.user, repo, branch)
	remote := fmt.Sprintf("https://%s:%s@%s/%s/%s", r.user, r.pass, github, r.user, repo)
	co := r.gitCommand("push", remote, branch)
	_, err := co.CombinedOutput()
	return err
}
func (r *Repo) Push(repo, branch string) error {
	if r.user == "" || r.pass == "" {
		return errors.New("cannot push without credentials - configure your git client")
	}
	r.logger.Infof("Pushing to '%s/%s (branch: %s)'.", r.user, repo, branch)
	remote := fmt.Sprintf("https://%s:%s@%s/%s/%s", r.user, r.pass, github, r.user, repo)
	co := r.gitCommand("push", remote, branch)
	_, err := co.CombinedOutput()
	return err
}
func ( r * Repo ) Push ( repo , branch string ) error { if r . user == " " || r . pass == " " { return errors . New ( " " ) } r . logger . Infof ( " " , r . user , repo , branch ) remote := fmt . Sprintf ( " " , r . user , r . pass , github , r . user , repo ) co := r . gitCommand ( " " , remote , branch ) _ , err := co . CombinedOutput ( ) return err }
// Push pushes over https to the provided owner/repo#branch using a password
// for basic auth.
Push pushes over https to the provided owner / repo#branch using a password for basic auth .