summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-07 12:09:30 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-07 12:09:30 -0400
commit7407f9caf3e0baf3f9b7894fab021356662eed17 (patch)
treef8a06f17b900657e4088973e31b24ba93125190e /models/repo.go
parent8ca14e210959b9316a4eed6e127de1eb775fda74 (diff)
downloadgitea-7407f9caf3e0baf3f9b7894fab021356662eed17.tar.gz
gitea-7407f9caf3e0baf3f9b7894fab021356662eed17.zip
Finish issue design
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go
index d2b92be487..079e100a13 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -694,8 +694,8 @@ func GetRepositoryById(id int64) (*Repository, error) {
}
// GetRepositories returns the list of repositories of given user.
-func GetRepositories(user *User, private bool) ([]Repository, error) {
- repos := make([]Repository, 0, 10)
+func GetRepositories(user *User, private bool) ([]*Repository, error) {
+ repos := make([]*Repository, 0, 10)
sess := orm.Desc("updated")
if !private {
sess.Where("is_private=?", false)