Skip to content

Release is not Updated when recreating Tag #26090

Closed
@JakobDev

Description

@JakobDev

Description

If you recreate a Tag on a new Commit, the Release will not be updated.

Steps to reproduce:

  1. Create a new Repo
  2. Create a new Release with a Tag called "Test"
  3. Clone the Repo
  4. Run these commands:
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

1 commits to main since this release

But this is not true. The Tag has now changed to the latest Commit.

I expect Gitea to do one of these 2 Options:

  1. Just Update the Release
  2. Do the same as if the Tag was deleted

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/criticalThis issue should be fixed ASAP. If it is a PR, the PR should be merged ASAPtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions