diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-19 20:40:50 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-19 20:40:50 +0200 |
commit | 08127d8d1ce1b0e4f4a15b05a240bbd421f559a0 (patch) | |
tree | 028063e37526acb00b8888caa4f3a7b9774fd1f8 /bug | |
parent | b58812136e404434ac01612cb4a573881f45eb55 (diff) | |
download | git-bug-08127d8d1ce1b0e4f4a15b05a240bbd421f559a0.tar.gz |
bug: add benchmarcks for bug merge
Diffstat (limited to 'bug')
-rw-r--r-- | bug/bug_actions.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bug/bug_actions.go b/bug/bug_actions.go index d4d5fe98..784397b0 100644 --- a/bug/bug_actions.go +++ b/bug/bug_actions.go @@ -3,6 +3,7 @@ package bug import ( "fmt" "io" + "io/ioutil" "strings" "github.com/MichaelMure/git-bug/repository" @@ -25,6 +26,10 @@ func Push(repo repository.Repo, remote string) (string, error) { } func Pull(repo repository.Repo, out io.Writer, remote string) error { + if out == nil { + out = ioutil.Discard + } + fmt.Fprintf(out, "Fetching remote ...\n") stdout, err := Fetch(repo, remote) |