gitea/services/forms
Kemal Zebari ecd463c2f1
Validate that the tag doesn't exist when creating a tag via the web (#33241)
Found while investigating #33210.

This line no longer makes sense because the form field "TagName" is
required, so this would mean that this code path would never be covered.
Because it isn't covered, we end up going down the "update release"
logic where we eventually set `Release.IsTag` to false (meaning it will
now be treated as a release instead of a tag).

This snapshot rewrites the condition to ensure that we aren't trying to
create a tag that already exists.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-14 09:27:35 +08:00
..
admin.go Add option to set language in admin user view (#28449) 2024-03-02 22:55:02 +01:00
auth_form.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
org.go Fix: Allow org team names of length 255 in create team form (#31564) 2024-07-10 02:15:17 +00:00
package_form.go Add Arch package registry (#32692) 2024-12-04 23:09:07 +00:00
repo_branch_form.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
repo_form_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
repo_form.go Validate that the tag doesn't exist when creating a tag via the web (#33241) 2025-01-14 09:27:35 +08:00
repo_tag_form.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
runner.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
user_form_auth_openid.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
user_form_hidden_comments.go Issue time estimate, meaningful time tracking (#23113) 2024-12-05 13:07:53 +00:00
user_form_test.go Redesign Scoped Access Tokens (#24767) 2023-06-04 20:57:16 +02:00
user_form.go Validate OAuth Redirect URIs (#32643) 2024-11-28 10:50:27 +08:00