diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-12-15 11:28:51 +0800 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-12-15 04:28:51 +0100 |
commit | ce2d488c9497c12105935d363b66136a0c2bd0b5 (patch) | |
tree | 65f73708a844d3fb7a5e05290fc6c0ddf5cfafdd /routers/api | |
parent | 6715677b2bf7a065d0184ea7f2647e70ca2598d4 (diff) | |
download | gitea-ce2d488c9497c12105935d363b66136a0c2bd0b5.tar.gz gitea-ce2d488c9497c12105935d363b66136a0c2bd0b5.zip |
Move PushToBaseRepo from models to services/pull (#9352)
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/repo/pull.go | 3 |
1 files changed, 0 insertions, 3 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) |