Skip to content

Commit

Permalink
Merge pull request #18077 from droslean/push-git-rev
Browse files Browse the repository at this point in the history
use user instead of org in git push method
  • Loading branch information
k8s-ci-robot committed Jun 25, 2020
2 parents db3d7dd + 08bc7bd commit e6edf45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prow/git/git.go
Expand Up @@ -400,8 +400,8 @@ func (r *Repo) Push(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.org, r.repo, branch)
remote := fmt.Sprintf("https://%s:%s@%s/%s/%s", r.user, r.pass, r.host, r.org, r.repo)
r.logger.Infof("Pushing to '%s/%s (branch: %s)'.", r.user, r.repo, branch)
remote := fmt.Sprintf("https://%s:%s@%s/%s/%s", r.user, r.pass, r.host, r.user, r.repo)
co := r.gitCommand("push", remote, branch)
out, err := co.CombinedOutput()
if err != nil {
Expand Down

0 comments on commit e6edf45

Please sign in to comment.