aboutsummaryrefslogtreecommitdiffstats
path: root/commands/push.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/push.go')
-rw-r--r--commands/push.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/push.go b/commands/push.go
index 06a4044b..11282ada 100644
--- a/commands/push.go
+++ b/commands/push.go
@@ -36,9 +36,10 @@ func runPush(cmd *cobra.Command, args []string) error {
// showCmd defines the "push" subcommand.
var pushCmd = &cobra.Command{
- Use: "push [<remote>]",
- Short: "Push bugs update to a git remote",
- RunE: runPush,
+ Use: "push [<remote>]",
+ Short: "Push bugs update to a git remote",
+ PreRunE: loadRepo,
+ RunE: runPush,
}
func init() {