sweet: only print git command stderr on failure

Currently a bunch of git helpers route git's stderr to Sweet's stderr,
but this just pollutes the output if everything worked fine. This change
captures the output and dumps it only on error.

Change-Id: I37e780e1deb98b44f13595fb8d53fd0568651de9
Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/613955
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
1 file changed