1
0
mirror of https://github.com/golang/go synced 2024-11-25 07:07:57 -07:00

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 next := c.num + 1
c, err = getCommit(strconv.Itoa(next)) c, err = getCommit(strconv.Itoa(next))
if err == nil || c.num == next { if err == nil && c.num == next {
return &c, nil return &c, nil
} }
return nil, nil return nil, nil