From e9a3432d984d19b675ee4a1ff82b2a148f970645 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 23 Mar 2014 19:24:06 +0800 Subject: [PATCH] bug fixed --- serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serve.go b/serve.go index 71abf5fdd6f2..84fd8d7b8275 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 {