From 387a4b09c1b62a2a5eb70b89559d5ae53032c989 Mon Sep 17 00:00:00 2001 From: Bobonium Date: Mon, 10 Sep 2018 16:57:41 +0200 Subject: [PATCH] allow api to create tags for releases (#4890) --- routers/api/v1/repo/release.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go index c58e8aea5353b..7c3de3581b11b 100644 --- a/routers/api/v1/repo/release.go +++ b/routers/api/v1/repo/release.go @@ -125,10 +125,6 @@ func CreateRelease(ctx *context.APIContext, form api.CreateReleaseOption) { ctx.Status(403) return } - if !ctx.Repo.GitRepo.IsTagExist(form.TagName) { - ctx.Status(404) - return - } rel, err := models.GetRelease(ctx.Repo.Repository.ID, form.TagName) if err != nil { if !models.IsErrReleaseNotExist(err) {