summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/repo/pull.go3
-rw-r--r--routers/repo/pull.go3
2 files changed, 0 insertions, 6 deletions
diff --git a/routers/api/v1/repo/pull.go b/routers/api/v1/repo/pull.go
index 93fa6ad276..1c273b7dc9 100644
--- a/routers/api/v1/repo/pull.go
+++ b/routers/api/v1/repo/pull.go
@@ -307,9 +307,6 @@ func CreatePullRequest(ctx *context.APIContext, form api.CreatePullRequestOption
}
ctx.Error(500, "NewPullRequest", err)
return
- } else if err := pr.PushToBaseRepo(); err != nil {
- ctx.Error(500, "PushToBaseRepo", err)
- return
}
notification.NotifyNewPullRequest(pr)
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index c791bc55d9..559d9b267a 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -813,9 +813,6 @@ func CompareAndPullRequestPost(ctx *context.Context, form auth.CreateIssueForm)
}
ctx.ServerError("NewPullRequest", err)
return
- } else if err := pullRequest.PushToBaseRepo(); err != nil {
- ctx.ServerError("PushToBaseRepo", err)
- return
}
notification.NotifyNewPullRequest(pullRequest)