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/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>
1 month ago
..
actions workflow_dispatch use workflow from trigger branch (#33098) 2 months ago
setting Clarify path param naming (#32969) 2 months ago
activity.go Refactor template & test related code (#32938) 2 months ago
attachment.go Clarify path param naming (#32969) 2 months ago
blame.go Refactor context repository (#33202) 1 month ago
branch.go Refactor context repository (#33202) 1 month ago
cherry_pick.go Refactor context repository (#33202) 1 month ago
code_frequency.go Refactor template & test related code (#32938) 2 months ago
commit.go Refactor context RefName and RepoAssignment (#33226) 1 month ago
compare.go Refactor "string truncate" (#32984) 2 months ago
contributors.go Refactor template & test related code (#32938) 2 months ago
download.go Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987) 2 months ago
editor.go Refactor context repository (#33202) 1 month ago
editor_test.go Clarify path param naming (#32969) 2 months ago
find.go Refactor template & test related code (#32938) 2 months ago
fork.go Refactor template & test related code (#32938) 2 months ago
githttp.go Clarify path param naming (#32969) 2 months ago
githttp_test.go
helper.go Refactor context RefName and RepoAssignment (#33226) 1 month ago
issue.go Merge updatecommentattachment functions (#33044) 2 months ago
issue_comment.go Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467) 2 months ago
issue_content_history.go Refactor DateUtils and merge TimeSince (#32409) 4 months ago
issue_dependency.go Refactor names (#31405) 8 months ago
issue_label.go Refactor template & test related code (#32938) 2 months ago
issue_label_test.go Refactor tests (#33021) 2 months ago
issue_list.go Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467) 2 months ago
issue_lock.go Move context from modules to services (#29440) 1 year ago
issue_new.go Use project's redirect url instead of composing url (#33058) 2 months ago
issue_page_meta.go Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index (#33106) 2 months ago
issue_pin.go Clarify path param naming (#32969) 2 months ago
issue_poster.go Move some functions from issue.go to standalone files (#32468) 4 months ago
issue_stopwatch.go Issue time estimate, meaningful time tracking (#23113) 3 months ago
issue_suggestions.go Fix suggestions for issues (#32380) 4 months ago
issue_test.go
issue_timetrack.go Clarify path param naming (#32969) 2 months ago
issue_view.go Some small refactors (#33144) 2 months ago
issue_watch.go Refactor template & test related code (#32938) 2 months ago
main_test.go
middlewares.go Refactor context repository (#33202) 1 month ago
migrate.go Refactor template & test related code (#32938) 2 months ago
milestone.go Refactor pagination (#33037) 2 months ago
packages.go Refactor context repository (#33202) 1 month ago
patch.go Refactor context repository (#33202) 1 month ago
projects.go Use project's redirect url instead of composing url (#33058) 2 months ago
projects_test.go Clarify path param naming (#32969) 2 months ago
pull.go Automerge supports deleting branch automatically after merging (#32343) 2 months ago
pull_review.go Refactor template & test related code (#32938) 2 months ago
pull_review_test.go Refactor older tests to use testify (#33140) 2 months ago
recent_commits.go Refactor template & test related code (#32938) 2 months ago
release.go Validate that the tag doesn't exist when creating a tag via the web (#33241) 1 month ago
release_test.go Validate that the tag doesn't exist when creating a tag via the web (#33241) 1 month ago
render.go Fix incorrect ref "blob" (#33240) 1 month ago
repo.go Refactor context RefName and RepoAssignment (#33226) 1 month ago
search.go Fix bleve fuzziness search (#33078) 2 months ago
search_test.go Improve grep search (#30843) 10 months ago
topic.go Move context from modules to services (#29440) 1 year ago
treelist.go Move context from modules to services (#29440) 1 year ago
view.go Refactor context repository (#33202) 1 month ago
view_file.go Refactor context RefName and RepoAssignment (#33226) 1 month ago
view_home.go Refactor context RefName and RepoAssignment (#33226) 1 month ago
view_readme.go Refactor context repository (#33202) 1 month ago
view_test.go
wiki.go Refactor pagination (#33037) 2 months ago
wiki_test.go Refactor older tests to use testify (#33140) 2 months ago