From 17e2ec8f5679c1ba7ae2ea45290e9303beb3c227 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 23 Jul 2018 00:04:46 +0200 Subject: bug: refactor to limit abstraction leak and to have a more reusable code for the UIs --- commands/push.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'commands/push.go') diff --git a/commands/push.go b/commands/push.go index 37479bfd..e2c29c68 100644 --- a/commands/push.go +++ b/commands/push.go @@ -16,9 +16,10 @@ func runPush(cmd *cobra.Command, args []string) error { remote = args[0] } - if err := repo.PushRefs(remote, bug.BugsRefPattern+"*"); err != nil { + if err := bug.Push(repo, remote); err != nil { return err } + return nil } -- cgit