Skip to content

Commit 53532d6

Browse files
committed
Make sure git push output shows up during pr create
1 parent 67e1fbc commit 53532d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git/git.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"errors"
66
"fmt"
77
"net/url"
8+
"os"
89
"os/exec"
910
"regexp"
1011
"strings"
@@ -70,8 +71,11 @@ func UncommittedChangeCount() (int, error) {
7071
return count, nil
7172
}
7273

74+
// Push publishes a git ref to a remote and sets up upstream configuration
7375
func Push(remote string, ref string) error {
7476
pushCmd := GitCommand("push", "--set-upstream", remote, ref)
77+
pushCmd.Stdout = os.Stdout
78+
pushCmd.Stderr = os.Stderr
7579
return utils.PrepareCmd(pushCmd).Run()
7680
}
7781

0 commit comments

Comments
 (0)