mirror of
https://github.com/golang/go
synced 2024-11-18 18:04:46 -07:00
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:
parent
7bcc81e644
commit
1d41279086
@ -426,7 +426,14 @@ func (b *Builder) buildSubrepo(goRoot, goPath, pkg, hash string) (string, error)
|
||||
}
|
||||
|
||||
// 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 {
|
||||
return "", err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user