gitea/templates
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
api/packages/pypi
base Fix dropdown menu header and mobile view (#33108) 2025-01-05 21:20:22 +00:00
custom
devtest De-emphasize signed commits (#31160) 2024-12-28 04:18:30 +08:00
explore Refactor template ctx and render utils (#32422) 2024-11-05 14:04:26 +08:00
mail
org Fix form width (#33151) 2025-01-08 23:57:18 +08:00
package feat: link to nuget dependencies (#26554) 2025-01-01 19:07:10 +08:00
projects Refactor repo-projects.ts (#32892) 2024-12-19 08:37:12 +00: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 Fix bleve fuzziness search (#33078) 2025-01-03 00:32:02 +08:00
status Remove urls from translations (#31950) 2024-09-02 18:36:24 +00:00
swagger Let API create and edit system webhooks, attempt 2 (#33180) 2025-01-13 17:17:39 +00:00
user Fix form width (#33151) 2025-01-08 23:57:18 +08:00
webhook
home.tmpl Remove urls from translations (#31950) 2024-09-02 18:36:24 +00:00
install.tmpl Supplement and Improvement for #32558 (#32585) 2024-11-21 02:42:37 +00:00
post-install.tmpl Optimize the installation page (#32994) 2024-12-31 04:49:26 +00:00