Fix off-by-one in commits list cap

In array.slice() the end index is not included. This bug made older commits
from other repos show up when another repo had more recent commits.