Closed
Description
Description
In a repo with two branches feature/test_case
and feature\Test_Case
gitea throws a 500 exception when syncing branches as the unique constraint is violated.
SyncRepoBranches: Error 1062 (23000): Duplicate entry '<redacted_branch_name>' for key 'UQE_branch_s'
This error happened after an upgrade to 1.21.0 on an existing repo.
Workaround is to rename one of the branches.
Typically having this type of different branch names only based on casing is not needed (imho it's a bug ;) ) - but we shouldn't have a 500 page when accessing the repo.
Gitea Version
1.21.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Linux
How are you running Gitea?
Official binary
Database
MySQL/MariaDB