Move PushToBaseRepo from models to services/pull (#9352)

This commit is contained in:
Lunny Xiao authored and Antoine GIRARD committed 2019-12-15 04:28:51 +01:00
1 parent 6715677b2b
commit ce2d488c94
6 files changed
+57 -53

No files matched your search

-3
View File
@@ -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)