diff options
Diffstat (limited to 'bug/bug_actions.go')
-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) |