From 08127d8d1ce1b0e4f4a15b05a240bbd421f559a0 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 19 Aug 2018 20:40:50 +0200 Subject: bug: add benchmarcks for bug merge --- bug/bug_actions.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bug/bug_actions.go') 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) -- cgit