aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2010-09-22 11:42:40 +1000
committerAndrew Gerrand <adg@golang.org>2010-09-22 11:42:40 +1000
commit0e73fffe36a917ff2e8e41c4a91b6824a6446f2b (patch)
tree5eaab6741df7aa0791acf42f2dc78b49cfb33dbf
parentc23f647e841a511562e0f47097d36bd3253db656 (diff)
downloadgo-0e73fffe36a917ff2e8e41c4a91b6824a6446f2b.tar.gz
go-0e73fffe36a917ff2e8e41c4a91b6824a6446f2b.zip
misc/dashboard/builder: fix bug that caused old revisions to be rebuilt
R=rsc, r2 CC=golang-dev https://golang.org/cl/2213044
-rw-r--r--misc/dashboard/builder/main.go2
1 files changed, 1 insertions, 1 deletions
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