Skip to content

Commit 62d47e0

Browse files
committed
Validate that the tag doesn't exist when creating a tag via the web
1 parent 8135254 commit 62d47e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/release.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ func NewReleasePost(ctx *context.Context) {
489489
return
490490
}
491491
} else {
492-
if !rel.IsTag {
492+
if len(form.TagOnly) > 0 && rel.IsTag {
493493
ctx.Data["Err_TagName"] = true
494494
ctx.RenderWithErr(ctx.Tr("repo.release.tag_name_already_exist"), tplReleaseNew, &form)
495495
return

0 commit comments

Comments
 (0)