mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-28 08:11:02 +08:00
Mirror fix and fix #481
This commit is contained in:
@ -656,7 +656,7 @@ func TransferOwnership(u *User, newOwner string, repo *Repository) error {
|
||||
}
|
||||
|
||||
// Check if new owner has repository with same name.
|
||||
has, err := IsRepositoryExist(u, repo.Name)
|
||||
has, err := IsRepositoryExist(newUser, repo.Name)
|
||||
if err != nil {
|
||||
return err
|
||||
} else if has {
|
||||
|
Reference in New Issue
Block a user