aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBobonium <Bobonium@users.noreply.github.com>2018-09-10 16:57:41 +0200
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-09-10 10:57:41 -0400
commit387a4b09c1b62a2a5eb70b89559d5ae53032c989 (patch)
treeb8a31c31e41aefc57d1f9e4bfc733c59c526dbf7
parent15ebe4b8530513d7b1f26b9454dc9c7d9643d24e (diff)
downloadgitea-387a4b09c1b62a2a5eb70b89559d5ae53032c989.tar.gz
gitea-387a4b09c1b62a2a5eb70b89559d5ae53032c989.zip
allow api to create tags for releases (#4890)
-rw-r--r--routers/api/v1/repo/release.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go
index c58e8aea53..7c3de3581b 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) {