From c066f3309e39c08ed0b03b0bfc7c4c3c0c30b438 Mon Sep 17 00:00:00 2001 From: Chris Manghane Date: Wed, 8 Oct 2014 11:45:00 -0700 Subject: [PATCH] dashboard/builder: fix gccgo `git log` execution LGTM=adg R=bradfitz CC=adg, golang-codereviews https://golang.org/cl/149630043 --- dashboard/builder/env.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dashboard/builder/env.go b/dashboard/builder/env.go index 8d104653..18bbbe01 100644 --- a/dashboard/builder/env.go +++ b/dashboard/builder/env.go @@ -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 // occurred before those files were modified to verify gccgo's status at that point. logCmd := []string{ - "git", "log", "-1", "--format=%H", @@ -207,7 +206,7 @@ func (env *gccgoEnv) setup(repo *Repo, workpath, hash string, envv []string) (st } 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) } gccRev := buf.String()