0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-19 11:44:06 +01:00
gitea/templates/repo
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
..
actions workflow_dispatch use workflow from trigger branch (#33098) 2025-01-05 21:47:18 +08:00
branch Refactor context RefName and RepoAssignment (#33226) 2025-01-13 01:07:05 +00:00
cite
code Fix sync fork for consistency (#33147) 2025-01-10 05:29:55 +00:00
diff add submodule diff links (#33097) 2025-01-08 01:38:30 +00:00
editor Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
find Fix word overflow in file search page (#32695) 2024-12-03 16:52:25 +00:00
graph De-emphasize signed commits (#31160) 2024-12-28 04:18:30 +08:00
issue Fix unpin hint on the pinned pull requests (#33207) 2025-01-12 00:05:33 +00:00
migrate Fix form width (#33151) 2025-01-08 23:57:18 +08:00
projects Fix incorrect project page CSS class (#32510) 2024-11-15 01:30:26 +00:00
pulls Fix form width (#33151) 2025-01-08 23:57:18 +08:00
release Validate that the tag doesn't exist when creating a tag via the web (#33241) 2025-01-14 09:27:35 +08:00
settings Remove unused CSS styles and move some styles to proper files (#33217) 2025-01-12 05:16:22 +00:00
tag Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
wiki Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
activity.tmpl
blame.tmpl Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
branch_dropdown.tmpl Fix branch dropdown not display ref name (#33159) 2025-01-09 18:43:49 +00:00
clone_buttons.tmpl Rearrange Clone Panel (#31142) 2024-12-11 21:54:30 +08:00
clone_panel.tmpl Refactor context RefName and RepoAssignment (#33226) 2025-01-13 01:07:05 +00:00
code_frequency.tmpl
commit_load_branches_and_tags.tmpl
commit_page.tmpl Fix dropdown menu header and mobile view (#33108) 2025-01-05 21:20:22 +00:00
commit_sign_badge.tmpl De-emphasize signed commits (#31160) 2024-12-28 04:18:30 +08:00
commit_status.tmpl
commit_statuses.tmpl fix toggle commit body button ui when latest commit message is long (#32997) 2024-12-29 08:04:56 +08:00
commits_list_small.tmpl De-emphasize signed commits (#31160) 2024-12-28 04:18:30 +08:00
commits_list.tmpl De-emphasize signed commits (#31160) 2024-12-28 04:18:30 +08:00
commits_search_dropdown.tmpl
commits_table.tmpl Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
commits.tmpl Fix branch dropdown not display ref name (#33159) 2025-01-09 18:43:49 +00:00
contributors.tmpl Add "n commits" link to contributors in contributors graph page (#32799) 2024-12-12 19:02:54 +00:00
create_helper.tmpl
create.tmpl Fix form width (#33151) 2025-01-08 23:57:18 +08:00
empty.tmpl Fix repo empty guide (#33114) 2025-01-06 12:07:52 +08:00
file_info.tmpl Improve detecting empty files (#31332) 2024-06-13 01:06:46 +00:00
forks.tmpl Refactor find forks and fix possible bugs that weak permissions check (#32528) 2024-11-18 03:06:25 +00:00
graph.tmpl
header.tmpl Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
home_sidebar_bottom.tmpl Tweak repo sidebar (#32847) 2024-12-15 10:01:46 +00:00
home_sidebar_top.tmpl Move repo size to sidebar (#33155) 2025-01-09 07:45:51 +00:00
home.tmpl Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
icon.tmpl
latest_commit.tmpl fix toggle commit body button ui when latest commit message is long (#32997) 2024-12-29 08:04:56 +08:00
navbar.tmpl
packages.tmpl
pulse.tmpl Remove unused CSS styles and move some styles to proper files (#33217) 2025-01-12 05:16:22 +00:00
recent_commits.tmpl
release_tag_header.tmpl
search_name.tmpl
search.tmpl
star_unstar.tmpl code optimization (#31315) 2024-06-11 21:07:10 +08:00
sub_menu.tmpl Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl Update the list of watchers and stargazers when clicking watch/unwatch or star/unstar (#32570) 2024-11-22 18:51:51 +00:00
view_file.tmpl Refactor context RefName and RepoAssignment (#33226) 2025-01-13 01:07:05 +00:00
view_list.tmpl add submodule diff links (#33097) 2025-01-08 01:38:30 +00:00
watch_unwatch.tmpl
watchers.tmpl