cmd/coordinator: ignore non-master branches when setting repo heads

Fixes golang/go#16413

Change-Id: I4876a7ac261bd31918dfebc119997c08ad9af78b
Reviewed-on: https://go-review.googlesource.com/25008
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Brad Fitzpatrick 2016-07-18 12:59:53 -07:00
Родитель 66c2dc2fee
Коммит a190cd2395
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -660,6 +660,7 @@ func findWork(work chan<- builderRev) error {
var goRevisions []string
seenSubrepo := make(map[string]bool)
var setGoRepoHead bool
for _, br := range bs.Revisions {
if br.Repo == "grpc-review" {
// Skip the grpc repo. It's only for reviews
@ -668,9 +669,10 @@ func findWork(work chan<- builderRev) error {
}
awaitSnapshot := false
if br.Repo == "go" {
if len(goRevisions) == 0 {
if !setGoRepoHead && br.Branch == "master" {
// First Go revision on page; update repo head.
setRepoHead(br.Repo, br.Revision)
setGoRepoHead = true
}
goRevisions = append(goRevisions, br.Revision)
} else {