-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release is not Updated when recreating Tag #26090
Comments
I can't reproduce your problem on gitea, I'm getting everything fine, Release is being updated automatically. |
What have you done? Delete Tag > Push > Recreate Tag > Push or Delete Tag > Recreate Tag > Push? |
Follow your reproduction steps |
@JakobDev I recorded a video that you can watch. default.mp4 |
Interesting. Did you try this on 1.20.1 or the latest commit? |
My code is based on the latest commit |
That's weird. I followed the steps in this video and finally reproduced the bug |
The point is that the tag
And why can't CaiCandong reproduce, while Zettat123 can? I think CaiCandong is using a database that is case-insensitive, maybe MySQL with a case-insensitive collation. |
Fix #26090, see #26090 (comment) Since `TagName` stores the original tag name and `LowerTagName` stores the lower tag name, it doesn't make sense to use lowercase tags as `TagNames` in `FindReleasesOptions`. https://github.com/go-gitea/gitea/blob/5e72526da4e915791f03af056890e16821bde052/services/repository/push.go#L396-L397 While the only other usage looks correct: https://github.com/go-gitea/gitea/blob/5e72526da4e915791f03af056890e16821bde052/routers/web/repo/repo.go#L416
Backport #29261. Fix #26090, see #26090 (comment) Since `TagName` stores the original tag name and `LowerTagName` stores the lower tag name, it doesn't make sense to use lowercase tags as `TagNames` in `FindReleasesOptions`. https://github.com/go-gitea/gitea/blob/5e72526da4e915791f03af056890e16821bde052/services/repository/push.go#L396-L397 While the only other usage looks correct: https://github.com/go-gitea/gitea/blob/5e72526da4e915791f03af056890e16821bde052/routers/web/repo/repo.go#L416
Fix #26090, see go-gitea/gitea#26090 (comment) Since `TagName` stores the original tag name and `LowerTagName` stores the lower tag name, it doesn't make sense to use lowercase tags as `TagNames` in `FindReleasesOptions`. https://github.com/go-gitea/gitea/blob/5e72526da4e915791f03af056890e16821bde052/services/repository/push.go#L396-L397 While the only other usage looks correct: https://github.com/go-gitea/gitea/blob/5e72526da4e915791f03af056890e16821bde052/routers/web/repo/repo.go#L416 (cherry picked from commit 0ea8de2d0729e1e1d0ea9de1e59fbcb673e87fd2)
Backport #29261. Fix #26090, see go-gitea/gitea#26090 (comment) Since `TagName` stores the original tag name and `LowerTagName` stores the lower tag name, it doesn't make sense to use lowercase tags as `TagNames` in `FindReleasesOptions`. https://github.com/go-gitea/gitea/blob/5e72526da4e915791f03af056890e16821bde052/services/repository/push.go#L396-L397 While the only other usage looks correct: https://github.com/go-gitea/gitea/blob/5e72526da4e915791f03af056890e16821bde052/routers/web/repo/repo.go#L416 (cherry picked from commit f79530c50ee1c7833cae13e56531e5d1fd66f5ba)
Fix go-gitea#26090, see go-gitea#26090 (comment) Since `TagName` stores the original tag name and `LowerTagName` stores the lower tag name, it doesn't make sense to use lowercase tags as `TagNames` in `FindReleasesOptions`. https://github.com/go-gitea/gitea/blob/5e72526da4e915791f03af056890e16821bde052/services/repository/push.go#L396-L397 While the only other usage looks correct: https://github.com/go-gitea/gitea/blob/5e72526da4e915791f03af056890e16821bde052/routers/web/repo/repo.go#L416
Automatically locked because of our CONTRIBUTING guidelines |
Description
If you recreate a Tag on a new Commit, the Release will not be updated.
Steps to reproduce:
git tag -d Test git commit --allow-empty -m "New Commit" git tag Test git push git push -f --tags
If you visit the Release Page, it shows
But this is not true. The Tag has now changed to the latest Commit.
I expect Gitea to do one of these 2 Options:
Gitea Version
1.20.1
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
Not relevant to reproduce
Screenshots
No response
Git Version
2.41.0
Operating System
Manjaro
How are you running Gitea?
Binary downloaded from GitHub
Database
SQLite
The text was updated successfully, but these errors were encountered: