From dd245fe8bd2208b66825aa9eb2c7cd529cfb8b49 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 22 Nov 2017 14:12:52 -0500 Subject: [PATCH] pull_request: fix changes not pushed to upstream if between two repositories (#4890) --- models/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/pull.go b/models/pull.go index d83389c22..9cbf442a6 100644 --- a/models/pull.go +++ b/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) }