aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {