From ce2d488c9497c12105935d363b66136a0c2bd0b5 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 15 Dec 2019 11:28:51 +0800 Subject: Move PushToBaseRepo from models to services/pull (#9352) --- routers/repo/pull.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'routers/repo') 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) -- cgit v1.2.3