diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-23 19:24:06 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-23 19:24:06 +0800 |
commit | e9a3432d984d19b675ee4a1ff82b2a148f970645 (patch) | |
tree | f37a4341e58886165c6c47d41350a9e53757f270 /serve.go | |
parent | 24630e0c9b92bcd9fdeb07ce15c3dd2cfc459a52 (diff) | |
download | gitea-e9a3432d984d19b675ee4a1ff82b2a148f970645.tar.gz gitea-e9a3432d984d19b675ee4a1ff82b2a148f970645.zip |
bug fixed
Diffstat (limited to 'serve.go')
-rw-r--r-- | serve.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |