From 8411b50f5d4e3b30d7d601612ee2aa5e4921c968 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 3 Nov 2015 13:00:04 -0500 Subject: [PATCH] work on #1882 --- .travis.yml | 3 +-- models/repo.go | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 371ce51b1..837d9a1cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ go: - 1.3 - 1.4 - 1.5 - - tip before_install: - sudo apt-get update -qq @@ -12,7 +11,7 @@ before_install: - go get github.com/msteinert/pam install: - - go get -t ./... + - go get -t -v ./... script: go build -v -tags "pam" diff --git a/models/repo.go b/models/repo.go index 5f19159f5..32841efc1 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) }