aboutsummaryrefslogtreecommitdiffstats
path: root/bug/bug_actions.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-19 20:40:50 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-19 20:40:50 +0200
commit08127d8d1ce1b0e4f4a15b05a240bbd421f559a0 (patch)
tree028063e37526acb00b8888caa4f3a7b9774fd1f8 /bug/bug_actions.go
parentb58812136e404434ac01612cb4a573881f45eb55 (diff)
downloadgit-bug-08127d8d1ce1b0e4f4a15b05a240bbd421f559a0.tar.gz
bug: add benchmarcks for bug merge
Diffstat (limited to 'bug/bug_actions.go')
-rw-r--r--bug/bug_actions.go5
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)