mirror of
https://github.com/go-gitea/gitea
synced 2024-11-05 01:34:25 +00:00
bug fixed
This commit is contained in:
parent
24630e0c9b
commit
e9a3432d98
2
serve.go
2
serve.go
@ -263,7 +263,7 @@ func runServ(k *cli.Context) {
|
|||||||
|
|
||||||
commits := make([][]string, 0)
|
commits := make([][]string, 0)
|
||||||
var maxCommits = 3
|
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)
|
commit := e.Value.(*git.Commit)
|
||||||
commits = append(commits, []string{commit.Id().String(), commit.Message()})
|
commits = append(commits, []string{commit.Id().String(), commit.Message()})
|
||||||
if len(commits) >= maxCommits {
|
if len(commits) >= maxCommits {
|
||||||
|
Loading…
Reference in New Issue
Block a user