Skip to content

Some branches have disappeared from the GUI. #28443

@raptyk

Description

@raptyk

Description

I am in the process of migrating from the old gitolite3 repository to gitea.

I have migrated 8 repositories correctly however with 3 I have a problem. The problem is that in the Gitea GUI and in the postgress database in the "branch" table I see only a few of the dozen branches. These branches are present after downloading the code from the new gitea repository however I can't see them in the GUI.

Running the "Sync missed branches from git data to databases" option doesn't help, and I only see a few errors in the logs:

2023/12/12 17:32:54 ...repository/branch.go:384:handlerBranchSync() [E] syncRepoBranches [32] failed: pq: invalid byte sequence for encoding "UTF8": 0xea 0x6b 0x73
2023/12/12 17:32:54 ...repository/branch.go:384:handlerBranchSync() [E] syncRepoBranches [24] failed: pq: invalid byte sequence for encoding "UTF8": 0xbf

In a nutshell what I did:

  1. I downloaded the old repository to a local drive along with all the branches.
  2. I added a second origin pointing to the gitea server in the same directory.
  3. I uploaded all the branches to the new gitea repository.
  4. in the GUI I see only a few branches, after downloading from the new repo I see all the branches.

I suspect this has to do with coding some commit or other special character topics. How to solve this problem?

Gitea Version

1.21.1 (in docker & postgresql)

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

error-2-branches-only-encoding
error-2-branches-only

Git Version

No response

Operating System

official docker image, postgresql

How are you running Gitea?

docker

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions