whoops forgot to actually limit it to 20
This commit is contained in:
parent
5ef2803075
commit
1ac3c9b982
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue