|
@ -1241,7 +1241,7 @@ func TransferOwnership(doer *User, newOwnerName string, repo *Repository) error |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if newOwner.IsOrganization() { |
|
|
if newOwner.IsOrganization() { |
|
|
if err := newOwner.GetTeams(&SearchTeamOptions{}); err != nil { |
|
|
|
|
|
|
|
|
if err := newOwner.getTeams(sess); err != nil { |
|
|
return fmt.Errorf("GetTeams: %v", err) |
|
|
return fmt.Errorf("GetTeams: %v", err) |
|
|
} |
|
|
} |
|
|
for _, t := range newOwner.Teams { |
|
|
for _, t := range newOwner.Teams { |
|
|