summaryrefslogtreecommitdiffstats
path: root/modules/pull
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pull')
-rw-r--r--modules/pull/merge.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/pull/merge.go b/modules/pull/merge.go
index 3e5721ad72..ed2fe48379 100644
--- a/modules/pull/merge.go
+++ b/modules/pull/merge.go
@@ -240,7 +240,13 @@ func Merge(pr *models.PullRequest, doer *models.User, baseGitRepo *git.Repositor
headUser = doer
}
- env := models.FullPushingEnvironment(headUser, doer, pr.BaseRepo, pr.ID)
+ env := models.FullPushingEnvironment(
+ headUser,
+ doer,
+ pr.BaseRepo,
+ pr.BaseRepo.Name,
+ pr.ID,
+ )
// Push back to upstream.
if err := git.NewCommand("push", "origin", pr.BaseBranch).RunInDirTimeoutEnvPipeline(env, -1, tmpBasePath, nil, &errbuf); err != nil {