dashboard/builder: fix gccgo `git log` execution
LGTM=adg R=bradfitz CC=adg, golang-codereviews https://golang.org/cl/149630043
This commit is contained in:
parent
46e9d8e060
commit
c066f3309e
|
|
@ -181,7 +181,6 @@ func (env *gccgoEnv) setup(repo *Repo, workpath, hash string, envv []string) (st
|
||||||
// not mirrored, e.g. in support/, we can sync to the most recent gcc commit that
|
// not mirrored, e.g. in support/, we can sync to the most recent gcc commit that
|
||||||
// occurred before those files were modified to verify gccgo's status at that point.
|
// occurred before those files were modified to verify gccgo's status at that point.
|
||||||
logCmd := []string{
|
logCmd := []string{
|
||||||
"git",
|
|
||||||
"log",
|
"log",
|
||||||
"-1",
|
"-1",
|
||||||
"--format=%H",
|
"--format=%H",
|
||||||
|
|
@ -207,7 +206,7 @@ func (env *gccgoEnv) setup(repo *Repo, workpath, hash string, envv []string) (st
|
||||||
}
|
}
|
||||||
|
|
||||||
buf.Reset()
|
buf.Reset()
|
||||||
if err := run(exec.Command(gccpath, logCmd...), runEnv(envv), allOutput(&buf), runDir(gccpath)); err != nil {
|
if err := run(exec.Command("git", logCmd...), runEnv(envv), allOutput(&buf), runDir(gccpath)); err != nil {
|
||||||
return "", fmt.Errorf("%s: %s", errMsg, err)
|
return "", fmt.Errorf("%s: %s", errMsg, err)
|
||||||
}
|
}
|
||||||
gccRev := buf.String()
|
gccRev := buf.String()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue