aboutsummaryrefslogtreecommitdiff
path: root/serve.go
diff options
context:
space:
mode:
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 71abf5fd..84fd8d7b 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 {