Skip to content

Mirroring of external repository does not work after rebase #6783

Closed
@samangh

Description

@samangh
  • Gitea version (or commit ref): 1.8.0 built with go1.12.4
  • Git version: 2.21.0
  • Operating system: Linux Debian
  • Database (use [x]):
    • [ x] MySQL
  • Can you reproduce the bug at https://try.gitea.io:
    • [ x] Yes

Description

If gitea is mirroring an external repository and the external repository undergoes a rebase or a force push (so that the histories diverge), then the mirrored repository fails to show those changes.

Steps to reproduce:

  1. Create a repository with an inital commit on GitHub
  2. Mirror this with gitea
  3. Reword the initial commit, and force push up to Github
  4. Observe that the changes are not shown on the master branch of the mirrored repository

For an example please see https://try.gitea.io/samangh/teset, which is supposed to be a mirror of https://github.com/samangh/test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions