diff options
author | Unknwon <u@gogs.io> | 2017-11-22 14:12:52 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-11-22 14:12:52 -0500 |
commit | dd245fe8bd2208b66825aa9eb2c7cd529cfb8b49 (patch) | |
tree | c6c128f65886b8cc9c561c522436f2bb779852f9 | |
parent | f12c058b78a46bc1da3bf51897a22c65f34091c5 (diff) |
pull_request: fix changes not pushed to upstream if between two repositories (#4890)
-rw-r--r-- | models/pull.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/pull.go b/models/pull.go index d83389c2..9cbf442a 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) } |