summaryrefslogtreecommitdiffstats
path: root/serve.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-23 19:24:06 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-23 19:24:06 +0800
commite9a3432d984d19b675ee4a1ff82b2a148f970645 (patch)
treef37a4341e58886165c6c47d41350a9e53757f270 /serve.go
parent24630e0c9b92bcd9fdeb07ce15c3dd2cfc459a52 (diff)
downloadgitea-e9a3432d984d19b675ee4a1ff82b2a148f970645.tar.gz
gitea-e9a3432d984d19b675ee4a1ff82b2a148f970645.zip
bug fixed
Diffstat (limited to 'serve.go')
-rw-r--r--serve.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/serve.go b/serve.go
index 71abf5fdd6..84fd8d7b82 100644
--- a/serve.go
+++ b/serve.go
@@ -263,7 +263,7 @@ func runServ(k *cli.Context) {
commits := make([][]string, 0)
var maxCommits = 3
- for e := l.Back(); e != nil; e = e.Prev() {
+ for e := l.Front(); e != nil; e = e.Next() {
commit := e.Value.(*git.Commit)
commits = append(commits, []string{commit.Id().String(), commit.Message()})
if len(commits) >= maxCommits {