0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-12 04:51:38 +01:00

allow api to create tags for releases (#4890)

This commit is contained in:
Bobonium 2018-09-10 16:57:41 +02:00 committed by techknowlogick
parent 15ebe4b853
commit 387a4b09c1

View file

@ -125,10 +125,6 @@ func CreateRelease(ctx *context.APIContext, form api.CreateReleaseOption) {
ctx.Status(403) ctx.Status(403)
return return
} }
if !ctx.Repo.GitRepo.IsTagExist(form.TagName) {
ctx.Status(404)
return
}
rel, err := models.GetRelease(ctx.Repo.Repository.ID, form.TagName) rel, err := models.GetRelease(ctx.Repo.Repository.ID, form.TagName)
if err != nil { if err != nil {
if !models.IsErrReleaseNotExist(err) { if !models.IsErrReleaseNotExist(err) {