From: Andrew Gerrand Date: Wed, 22 Sep 2010 01:42:40 +0000 (+1000) Subject: misc/dashboard/builder: fix bug that caused old revisions to be rebuilt X-Git-Tag: weekly.2010-09-22~19 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0e73fffe36a917ff2e8e41c4a91b6824a6446f2b;p=gostls13.git misc/dashboard/builder: fix bug that caused old revisions to be rebuilt R=rsc, r2 CC=golang-dev https://golang.org/cl/2213044 --- diff --git a/misc/dashboard/builder/main.go b/misc/dashboard/builder/main.go index d13e05b733..0302638bd3 100644 --- a/misc/dashboard/builder/main.go +++ b/misc/dashboard/builder/main.go @@ -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