aboutsummaryrefslogtreecommitdiff
path: root/serve.go
diff options
context:
space:
mode:
Diffstat (limited to 'serve.go')
-rw-r--r--serve.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/serve.go b/serve.go
index bb9165dc..812c37bb 100644
--- a/serve.go
+++ b/serve.go
@@ -262,9 +262,13 @@ func runServ(k *cli.Context) {
}
commits := make([][]string, 0)
+ var maxCommits = 5
for e := l.Back(); e != nil; e = e.Prev() {
commit := e.Value.(*git.Commit)
commits = append(commits, []string{commit.Id().String(), commit.Message()})
+ if len(commits) >= maxCommits {
+ break
+ }
}
if err = models.CommitRepoAction(user.Id, user.Name,