зеркало из https://github.com/golang/build.git
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:
Родитель
66c2dc2fee
Коммит
a190cd2395
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче