From 0d976f66e87b7c053b10d50fe0849f6c8e5412e6 Mon Sep 17 00:00:00 2001 From: Amine Hilaly Date: Fri, 3 May 2019 00:02:50 +0200 Subject: Add importer tests Changes to Importer and exporter interface Improve importer Fix extra edits bug --- commands/bridge_pull.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'commands/bridge_pull.go') diff --git a/commands/bridge_pull.go b/commands/bridge_pull.go index 9b251479..f9958882 100644 --- a/commands/bridge_pull.go +++ b/commands/bridge_pull.go @@ -1,6 +1,8 @@ package commands import ( + "time" + "github.com/MichaelMure/git-bug/bridge" "github.com/MichaelMure/git-bug/bridge/core" "github.com/MichaelMure/git-bug/cache" @@ -28,7 +30,8 @@ func runBridgePull(cmd *cobra.Command, args []string) error { return err } - err = b.ImportAll() + // TODO: by default import only new events + err = b.ImportAll(time.Time{}) if err != nil { return err } -- cgit