aboutsummaryrefslogtreecommitdiffstats
path: root/services/context
diff options
context:
space:
mode:
authorKemal Zebari <60799661+kemzeb@users.noreply.github.com>2025-01-13 17:27:35 -0800
committerGitHub <noreply@github.com>2025-01-14 09:27:35 +0800
commitecd463c2f14a8bc1f0eb91d809bf504c99ebf183 (patch)
treead9d1005047518993e3b1c35f0ddbf0d44cf1697 /services/context
parent58ac17c005e9b554f419d179452d57b9e9062af5 (diff)
downloadgitea-ecd463c2f14a8bc1f0eb91d809bf504c99ebf183.tar.gz
gitea-ecd463c2f14a8bc1f0eb91d809bf504c99ebf183.zip
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>
Diffstat (limited to 'services/context')
0 files changed, 0 insertions, 0 deletions