summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-19 14:39:07 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-19 14:39:07 +0800
commit3da325591b5d8578f575f5fad59595f3c5efe4d6 (patch)
tree65d0d4c045311044d2526052dc6b734ff6a56db2 /models
parent3ceb008e1f50b89a2e0fda8fac939df92642219c (diff)
downloadgitea-3da325591b5d8578f575f5fad59595f3c5efe4d6.tar.gz
gitea-3da325591b5d8578f575f5fad59595f3c5efe4d6.zip
bug fixed for commits list
Diffstat (limited to 'models')
-rw-r--r--models/repo.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index c37fb4de20..1331bbf450 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -5,6 +5,7 @@
package models
import (
+ "container/list"
"errors"
"fmt"
"io/ioutil"
@@ -601,7 +602,7 @@ func GetLastestCommit(userName, repoName string) (*Commit, error) {
}*/
// GetCommits returns all commits of given branch of repository.
-func GetCommits(userName, reposName, branchname string) ([]*git.Commit, error) {
+func GetCommits(userName, reposName, branchname string) (*list.List, error) {
repo, err := git.OpenRepository(RepoPath(userName, reposName))
if err != nil {
return nil, err