summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-03 13:00:04 -0500
committerUnknwon <u@gogs.io>2015-11-03 13:00:04 -0500
commit8411b50f5d4e3b30d7d601612ee2aa5e4921c968 (patch)
tree5974fddf6fc71a3e45e801fdf2994a3ef3d5c445 /models
parent8a87bee4346968e280e9b9a6e56373c1d2e1c357 (diff)
downloadgitea-8411b50f5d4e3b30d7d601612ee2aa5e4921c968.tar.gz
gitea-8411b50f5d4e3b30d7d601612ee2aa5e4921c968.zip
work on #1882
Diffstat (limited to 'models')
-rw-r--r--models/repo.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/repo.go b/models/repo.go
index 5f19159f57..32841efc1a 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -910,9 +910,9 @@ func TransferOwnership(u *User, newOwnerName string, repo *Repository) error {
}
// Remove redundant collaborators.
- collaborators, err := repo.GetCollaborators()
+ collaborators, err := repo.getCollaborators(sess)
if err != nil {
- return fmt.Errorf("GetCollaborators: %v", err)
+ return fmt.Errorf("getCollaborators: %v", err)
}
// Dummy object.
@@ -948,9 +948,9 @@ func TransferOwnership(u *User, newOwnerName string, repo *Repository) error {
}
if newOwner.IsOrganization() {
- t, err := newOwner.GetOwnerTeam()
+ t, err := newOwner.getOwnerTeam(sess)
if err != nil {
- return fmt.Errorf("GetOwnerTeam: %v", err)
+ return fmt.Errorf("getOwnerTeam: %v", err)
} else if err = t.addRepository(sess, repo); err != nil {
return fmt.Errorf("add to owner team: %v", err)
}