Skip to content

Mirror of an uninitialized repository #9630

Closed
@andreasfranke

Description

@andreasfranke

Description

If I create an uninitialized repository as remote, make a mirror of this remote using “New Migration” and “This repository will be a mirror”, the mirror never updates correctly, when I initialize and add some files to remote to a later time.

I found out that Gitea does not update the entries in the SQLite database when migrating (mirroring) an uninitialized repository and then initializing the remote repository and synchronize this repository from mirror. In the table main.repository the “default_branch” must be set to “master” and the field “is_empty” to “0” manually.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions