Commit 0e73fffe authored by Andrew Gerrand's avatar Andrew Gerrand

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

R=rsc, r2
CC=golang-dev
https://golang.org/cl/2213044
parent c23f647e
...@@ -217,7 +217,7 @@ func (b *Builder) nextCommit() (nextC *Commit, err os.Error) { ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment