whoops forgot to actually limit it to 20

This commit is contained in:
Michael Zhang 2020-10-14 16:23:22 -05:00
parent 5ef2803075
commit 1ac3c9b982
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B

View file

@ -31,7 +31,7 @@ func (web *Web) mapVersions(c *gin.Context) {
versions := make([]Revision, 0)
logIter, _ := repo.Log(&git.LogOptions{})
for {
for i := 0; i < 20; i++ {
commit, err := logIter.Next()
if err == io.EOF {
break