misc/dashboard/builder: fix bug that caused old revisions to be rebuilt

R=rsc, r2
CC=golang-dev
https://golang.org/cl/2213044
This commit is contained in:
Andrew Gerrand 2010-09-22 11:42:40 +10:00
parent c23f647e84
commit 0e73fffe36

View file

@ -217,7 +217,7 @@ func (b *Builder) nextCommit() (nextC *Commit, err os.Error) {
}
next := c.num + 1
c, err = getCommit(strconv.Itoa(next))
if err == nil || c.num == next {
if err == nil && c.num == next {
return &c, nil
}
return nil, nil