aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-08-19 00:19:58 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-08-19 00:19:58 +0200
commite6931aaf6f3173c634b03d515287e4a12fd20f15 (patch)
tree50484f3531e33c2c63c026fcb1c76f60f8b13862 /commands
parentdf412430ab35106df57bc32d6dd01bd088bf4735 (diff)
downloadgit-bug-e6931aaf6f3173c634b03d515287e4a12fd20f15.tar.gz
commands: silence export and import nothing events
Diffstat (limited to 'commands')
-rw-r--r--commands/bridge_pull.go4
-rw-r--r--commands/bridge_push.go4
2 files changed, 6 insertions, 2 deletions
diff --git a/commands/bridge_pull.go b/commands/bridge_pull.go
index 0f3b8413..2bdd24c3 100644
--- a/commands/bridge_pull.go
+++ b/commands/bridge_pull.go
@@ -73,7 +73,9 @@ func runBridgePull(cmd *cobra.Command, args []string) error {
importedIssues := 0
importedIdentities := 0
for result := range events {
- fmt.Println(result.String())
+ if result.Event != core.ImportEventNothing {
+ fmt.Println(result.String())
+ }
switch result.Event {
case core.ImportEventBug:
diff --git a/commands/bridge_push.go b/commands/bridge_push.go
index 77fe8b29..a56f9bc3 100644
--- a/commands/bridge_push.go
+++ b/commands/bridge_push.go
@@ -71,7 +71,9 @@ func runBridgePush(cmd *cobra.Command, args []string) error {
exportedIssues := 0
for result := range events {
- fmt.Println(result.String())
+ if result.Event != core.ExportEventNothing {
+ fmt.Println(result.String())
+ }
switch result.Event {
case core.ExportEventBug: