Skip to content
Browse files

pull_request: fix changes not pushed to upstream if between two repos…

…itories (gogs#4890)
  • Loading branch information...
Unknwon committed Nov 22, 2017
1 parent f12c058 commit dd245fe8bd2208b66825aa9eb2c7cd529cfb8b49
Showing with 1 addition and 1 deletion.
  1. +1 −1 models/pull.go
@@ -282,7 +282,7 @@ func (pr *PullRequest) Merge(doer *User, baseGitRepo *git.Repository, mergeStyle
// Push back to upstream.
if _, stderr, err = process.ExecDir(-1, tmpBasePath,
fmt.Sprintf("PullRequest.Merge (git push): %s", tmpBasePath),
"git", "push", "head_repo", "HEAD:"+pr.BaseBranch); err != nil {
"git", "push", baseGitRepo.Path, pr.BaseBranch); err != nil {
return fmt.Errorf("git push: %s", stderr)

0 comments on commit dd245fe

Please sign in to comment.
You can’t perform that action at this time.