aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/pull.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index 01a57f04e4..22ccc7769c 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -710,15 +710,8 @@ func CompareAndPullRequestPost(ctx *context.Context, form auth.CreateIssueForm)
return
}
- maxIndex, err := models.GetMaxIndexOfIssue(repo.ID)
- if err != nil {
- ctx.ServerError("GetPatch", err)
- return
- }
-
pullIssue := &models.Issue{
RepoID: repo.ID,
- Index: maxIndex + 1,
Title: form.Title,
PosterID: ctx.User.ID,
Poster: ctx.User,