Mirror fix and fix #481

This commit is contained in:
Unknwon 2014-09-17 14:22:51 -04:00
parent c03f5a2c7c
commit 8a09256941
8 changed files with 17 additions and 15 deletions

View file

@ -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 {