Checking out tag after updating returns stale content

XMLWordPrintable

      I'm continuously updating a tag, which is being pulled checked out by another repository.
      After the update, the checkout of the tag does not check out the commit it is actually referencing, but a stale commit instead (the one before the update).

      Steps to reproduce:

      In repo1:

      • git add .
      • git commit -m "Commit one"
      • git tag -a 0.0.1
      • git push origin master --tags

      In repo2:

      • git clone repo1
      • git checkout 0.0.1

      In repo1:

      • (make changes)
      • git add .
      • git commit --amend
      • git tag -f -a 0.0.1
      • git push origin master -f --tags

      In repo2:

      • git fetch && git checkout 0.0.1

      Expected:
      I receive the updated commit I just pushed to repo1

      Actual:
      I receive the stale commit that was tagged before I updated 0.0.1

            Assignee:
            Unassigned
            Reporter:
            Felix (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: