From a417e6f470f4cf19292a2bb5638b773bd1883e13 Mon Sep 17 00:00:00 2001 From: Roger Peppe Date: Sat, 28 Jan 2012 12:02:22 +0000 Subject: [PATCH] cmd/go: make vcs command actually gather output R=rsc, bradfitz CC=golang-dev https://golang.org/cl/5577062 --- src/cmd/go/vcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/vcs.go b/src/cmd/go/vcs.go index da35048d533..8927fe8056e 100644 --- a/src/cmd/go/vcs.go +++ b/src/cmd/go/vcs.go @@ -157,8 +157,8 @@ func (v *vcsCmd) run1(dir string, output bool, cmdline string, keyval []string) var buf bytes.Buffer cmd.Stdout = &buf cmd.Stderr = &buf - out := buf.Bytes() err := cmd.Run() + out := buf.Bytes() if err != nil { fmt.Fprintf(os.Stderr, "# cd %s; %s %s\n", dir, v.cmd, strings.Join(args, " ")) os.Stderr.Write(out)