Skip to content

Commit 09fd01f

Browse files
authored
Merge branch 'master' into lunny/refactor_push_update
2 parents fb0bcb2 + 682f0b0 commit 09fd01f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/pull/merge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func rawMerge(pr *models.PullRequest, doer *models.User, mergeStyle models.Merge
411411
)
412412

413413
// Push back to upstream.
414-
if err := git.NewCommand("push", "origin", baseBranch+":"+pr.BaseBranch).RunInDirTimeoutEnvPipeline(env, -1, tmpBasePath, &outbuf, &errbuf); err != nil {
414+
if err := git.NewCommand("push", "origin", baseBranch+":refs/heads/"+pr.BaseBranch).RunInDirTimeoutEnvPipeline(env, -1, tmpBasePath, &outbuf, &errbuf); err != nil {
415415
if strings.Contains(errbuf.String(), "non-fast-forward") {
416416
return "", &git.ErrPushOutOfDate{
417417
StdOut: outbuf.String(),

0 commit comments

Comments
 (0)