0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-07 14:04:45 +01:00
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>
2025-01-14 09:27:35 +08:00
..
admin Remove some unnecessary template helpers (#33069) 2025-01-01 18:02:34 +08:00
auth Support for email addresses containing uppercase characters when activating user account (#32998) 2024-12-27 19:16:23 +08:00
devtest De-emphasize signed commits (#31160) 2024-12-28 04:18:30 +08:00
events
explore Fix bleve fuzziness search (#33078) 2025-01-03 00:32:02 +08:00
feed Refactor context RefName and RepoAssignment (#33226) 2025-01-13 01:07:05 +00:00
healthcheck
misc Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
org Use project's redirect url instead of composing url (#33058) 2024-12-31 19:19:53 +08:00
repo Validate that the tag doesn't exist when creating a tag via the web (#33241) 2025-01-14 09:27:35 +08:00
shared [Feature] Private README.md for organization (#32872) 2024-12-31 04:22:09 +00:00
user Fix bleve fuzziness search (#33078) 2025-01-03 00:32:02 +08:00
base.go Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) 2024-10-31 15:28:25 +00:00
githttp.go Fix LFS route mock, realm, middleware names (#32488) 2024-11-13 16:58:09 +08:00
goget.go Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
home.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
metrics.go
nodeinfo.go
passkey.go
swagger_json.go
web.go Fix incorrect ref "blob" (#33240) 2025-01-13 16:27:11 +08:00
webfinger.go