Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to migrate repos with duplicate case-different tags #25909

Closed
silverwind opened this issue Jul 16, 2023 · 3 comments
Closed

Unable to migrate repos with duplicate case-different tags #25909

silverwind opened this issue Jul 16, 2023 · 3 comments
Labels

Comments

@silverwind
Copy link
Member

silverwind commented Jul 16, 2023

Description

  1. Create new migration from https://github.com/pytorch/pytorch, does not matter whether mirror or not.

After some time, it will error:

2023/07/16 18:19:53 ...ices/task/migrate.go:60:func1() [E] runMigrateTask[6] by DoerID[1] to RepoID[47] for OwnerID[1] failed: SyncRepoBranchesWithRepo: Error 1062 (23000): Duplicate entry '47-update-test-distribute' for key 'UQE_branch_s'
2023/07/16 18:19:53 ...ervices/task/task.go:51:handler() [E] Run task failed: SyncRepoBranchesWithRepo: Error 1062 (23000): Duplicate entry '47-update-test-distribute' for key 'UQE_branch_s'
image

Likely regression from #22743

Gitea Version

main

Database

mysqld  Ver 11.0.2-MariaDB for osx10.18 on x86_64 (Homebrew)
@wxiaoguang
Copy link
Contributor

This one, but stale:

Convert branch table name column to a new collation for mysql/mssql to support case sensitive because branch names are case sensitive #25623

@silverwind
Copy link
Member Author

Indeed, the repo has two branches with same name but different case:

image

@wxiaoguang
Copy link
Contributor

There is a workaround in #28131

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
2 participants