Skip to content

Incorrect branch reference name in the mirror repository activity log #36474

@imkuang

Description

@imkuang

Description

To reproduce the issue, perform the following steps:

  1. Create a mirror repository based on a multi-branch remote repository.
  2. Delete a branch from the remote repository (in this example, the branch is named “test”).
  3. Synchronize the mirror.

You will see the following deleted reference activity log, but the name clearly contains an error. The branch should correspond to refs/heads/test rather than refs/tags/test (or should we ignore the refs/xxx prefix?).

Image

Test remote repository: https://gitea.com/404notfound/test123
Test mirror repository: https://demo.gitea.com/404notfound/test123

The remote repository's activity log confirms that the test reference is a branch:
Image

Gitea Version

1.25.4

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker

Database

SQLite

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