diff options
author | Teddy Wing | 2014-12-26 19:17:35 -0500 |
---|---|---|
committer | Teddy Wing | 2014-12-26 19:17:35 -0500 |
commit | ea03b4335528cf741b29df1403680f11e56722b1 (patch) | |
tree | 3d99663f6c62bfc13da579bd306ab93015a08107 /git-checkout-store | |
parent | e02955d75b0f72147884de74ef6ff563828f1bc2 (diff) | |
download | git-checkout-history-ea03b4335528cf741b29df1403680f11e56722b1.tar.bz2 |
git-checkout-store: Print `git checkout` stderr output
Turns out `git checkout` prints to STDERR instead of STDOUT. Grab the
STDERR output and print that to the screen so we can see the "Switched
to branch 'x'" text when using `git checkout-store`.
Diffstat (limited to 'git-checkout-store')
-rw-r--r-- | git-checkout-store/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-checkout-store/main.go b/git-checkout-store/main.go index 335bd02..ae3ff27 100644 --- a/git-checkout-store/main.go +++ b/git-checkout-store/main.go @@ -16,7 +16,7 @@ func main() { cmd := exec.Command("git", "checkout", args[0]) var out bytes.Buffer - cmd.Stdout = &out + cmd.Stderr = &out err := cmd.Run() if err != nil { fmt.Fprintf(os.Stderr, err.Error()) |