зеркало из https://github.com/golang/build.git
go.tools/dashboard: fix Repo creation in buildSubRepo to have valid Master repo.
R=golang-dev, adg CC=golang-dev https://golang.org/cl/13568047
This commit is contained in:
Родитель
bb7739ac49
Коммит
a6ac5386f3
|
@ -426,7 +426,14 @@ func (b *Builder) buildSubrepo(goRoot, goPath, pkg, hash string) (string, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// hg update to the specified hash
|
// hg update to the specified hash
|
||||||
repo := Repo{Path: filepath.Join(goPath, "src", pkg)}
|
pkgmaster, err := vcs.RepoRootForImportPath(pkg, *verbose)
|
||||||
|
if err != nil {
|
||||||
|
return "", fmt.Errorf("Error finding subrepo (%s): %s", pkg, err)
|
||||||
|
}
|
||||||
|
repo := &Repo{
|
||||||
|
Path: filepath.Join(goPath, "src", pkg),
|
||||||
|
Master: pkgmaster,
|
||||||
|
}
|
||||||
if err := repo.UpdateTo(hash); err != nil {
|
if err := repo.UpdateTo(hash); err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче