You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web
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>
1 month ago
..
admin Remove some unnecessary template helpers (#33069) 2 months ago
auth Support for email addresses containing uppercase characters when activating user account (#32998) 2 months ago
devtest De-emphasize signed commits (#31160) 2 months ago
events Move context from modules to services (#29440) 1 year ago
explore Fix bleve fuzziness search (#33078) 2 months ago
feed Refactor context RefName and RepoAssignment (#33226) 1 month ago
healthcheck Always enable caches (#28527) 1 year ago
misc Refactor template & test related code (#32938) 2 months ago
org Use project's redirect url instead of composing url (#33058) 2 months ago
repo Validate that the tag doesn't exist when creating a tag via the web (#33241) 1 month ago
shared [Feature] Private README.md for organization (#32872) 2 months ago
user Fix bleve fuzziness search (#33078) 2 months ago
base.go Fix `missing signature key` error when pulling Docker images with `SERVE_DIRECT` enabled (#32365) 4 months ago
githttp.go Fix LFS route mock, realm, middleware names (#32488) 3 months ago
goget.go Make git clone URL could use current signed-in user (#33091) 2 months ago
home.go Refactor template & test related code (#32938) 2 months ago
metrics.go Implement FSFE REUSE for golang files (#21840) 2 years ago
nodeinfo.go Move context from modules to services (#29440) 1 year ago
passkey.go Move context from modules to services (#29440) 1 year ago
swagger_json.go Move context from modules to services (#29440) 1 year ago
web.go Fix incorrect ref "blob" (#33240) 1 month ago
webfinger.go Move context from modules to services (#29440) 1 year ago