mirror of
https://github.com/golang/go
synced 2024-11-21 16:54:46 -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:
parent
a3fdd6e649
commit
a417e6f470
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user