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:
parent
c23f647e84
commit
0e73fffe36
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user