Skip to content

Commit

Permalink
allow api to create tags for releases (#4890)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobonium authored and techknowlogick committed Sep 10, 2018
1 parent 15ebe4b commit 387a4b0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions routers/api/v1/repo/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 387a4b0

Please sign in to comment.