mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +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