1
0
mirror of https://github.com/golang/go synced 2024-11-24 23:07:56 -07:00

cmd/go: make vcs command actually gather output

R=rsc, bradfitz
CC=golang-dev
https://golang.org/cl/5577062
This commit is contained in:
Roger Peppe 2012-01-28 12:02:22 +00:00
parent a3fdd6e649
commit a417e6f470

View File

@ -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)