aboutsummaryrefslogtreecommitdiffstats
path: root/commands/push.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-23 00:04:46 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-23 00:04:46 +0200
commit17e2ec8f5679c1ba7ae2ea45290e9303beb3c227 (patch)
treec8862ebf6e9e9314361120127bf3fc59877c3e02 /commands/push.go
parente1f597639bfc2f796f74afa87e41581087f0b26e (diff)
downloadgit-bug-17e2ec8f5679c1ba7ae2ea45290e9303beb3c227.tar.gz
bug: refactor to limit abstraction leak and to have a more reusable code for the UIs
Diffstat (limited to 'commands/push.go')
-rw-r--r--commands/push.go3
1 files changed, 2 insertions, 1 deletions
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
}