Skip to content

UI shows wrong commit for tag when re-pushing tag #21579

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

Closed
silverwind opened this issue Oct 24, 2022 · 2 comments
Closed

UI shows wrong commit for tag when re-pushing tag #21579

silverwind opened this issue Oct 24, 2022 · 2 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/bug

Comments

@silverwind
Copy link
Member

silverwind commented Oct 24, 2022

Description

See example repos. Both having the same git content, but gitea UI shows the wrong commit when viewing the tag:

https://try.gitea.io/silverwind/symlink-test/src/tag/tag1
https://github.com/silverwind/symlink-test/tree/tag1

The tag was pushed, deleted and pushed again as follows:

# create first commit and tag
git commit --allow-empty -m tag1
git tag -a tag1 -m tag1
git push --follow-tags origin master

# delete tag
git tag -d tag1
git push origin :tag1

# create second commit and tag
git commit --allow-empty -m tag1fix
git tag -a tag1 -m tag1
git push --follow-tags origin master

It seems that either on tag deletion or on tag re-push, gitea did not correctly update the commit reference of the tag, resulting in the UI showing the wrong commit. I assume there must be some cache going stale as the git cli shows the tag on the correct commit when cloning down the repo.

Gitea Version

latest master

Can you reproduce the bug on the Gitea demo site?

Yes

@silverwind silverwind changed the title Tag reference not updated when re-pushing same tag Tag not updated in UI when re-pushing same tag Oct 24, 2022
@silverwind silverwind changed the title Tag not updated in UI when re-pushing same tag UI shows wrong commit when re-pushing tag Oct 24, 2022
@silverwind silverwind changed the title UI shows wrong commit when re-pushing tag UI shows wrong commit for tag when re-pushing tag Oct 26, 2022
@lunny
Copy link
Member

lunny commented Sep 23, 2024

This should be fixed by #32040

@lunny lunny added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Sep 24, 2024
@GiteaBot
Copy link
Collaborator

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jan 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/bug
Projects
None yet
Development

No branches or pull requests

3 participants