Skip to content

Deleted tag and recreated on different commit is not reflected in client #18456

Closed

Description

@mrkmcnamee

The problem

We rerolled a patch which involved deleting a release and the associated tag, and then creating a new release with the same tag on a later commit. This all worked fined in GitHub web, but the GitHub client did not move the tag to the new commit after fetch origin, which is confusing.

Release version

3.3.13

Operating system

Windos 11 Pro

Steps to reproduce the behavior

  1. Web: Create tag and release on branch, say master.
  2. Client: Fetch origin. Tag is shown on last commit on master.
  3. Client: Make new commit on master and push.
  4. Web: Delete tag and release.
  5. Web: Recreate tag and make new release from the new commit.
  6. Client Fetch origin. Tag is still shown on old commit.

Log files

No response

Screenshots

Client after retagging shows tag on old commit:

image

Web shows tag on new commit:

image

Additional context

No response

Activity

  1. steveward commented on Apr 17, 2024

    @steveward
    Contributor

    @mrkmcnamee thanks for the report. Git won't update the tag locally -- see this comment for some more information about this. I'm going to close this out, but let me know if you have any further questions.

  2. mrkmcnamee commented on Apr 17, 2024

    @mrkmcnamee
    Author

    Hi @steveward!
    OK, so Git doesn't update the tag locally by default. But it is possible to do? StackOverflow suggests: git fetch origin --tags --force or a variation of that.

    So, do I have to manually run this command or is it possible to do this in the GitHub client?

  3. steveward commented on Apr 18, 2024

    @steveward
    Contributor

    You'll have to manually run that command, there isn't a way to do this in GitHub Desktop as of yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions