]> Cypherpunks repositories - gostls13.git/commitdiff
misc/dashboard/builder: fix bug that caused old revisions to be rebuilt
authorAndrew Gerrand <adg@golang.org>
Wed, 22 Sep 2010 01:42:40 +0000 (11:42 +1000)
committerAndrew Gerrand <adg@golang.org>
Wed, 22 Sep 2010 01:42:40 +0000 (11:42 +1000)
R=rsc, r2
CC=golang-dev
https://golang.org/cl/2213044

misc/dashboard/builder/main.go

index d13e05b7334c8994d08fc6ecae5c7406a54bd5d8..0302638bd38406ea88de84b4b8f419bd6000c9f3 100644 (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