aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/import.go
diff options
context:
space:
mode:
authoramine <hilalyamine@gmail.com>2019-11-19 19:51:43 +0100
committeramine <hilalyamine@gmail.com>2019-11-19 20:04:40 +0100
commit87244d3c8da86fa3b02f87211e823f75649585f6 (patch)
treebdd4f5484c25c5b6c84ed886f168af6e5130abd1 /bridge/github/import.go
parent8b5685bb9903f4db5c7375aa4ace83772f5d757b (diff)
downloadgit-bug-87244d3c8da86fa3b02f87211e823f75649585f6.tar.gz
bridge/github: export correctly emit nothing events
Diffstat (limited to 'bridge/github/import.go')
-rw-r--r--bridge/github/import.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/github/import.go b/bridge/github/import.go
index d24c1d2b..b89e7e02 100644
--- a/bridge/github/import.go
+++ b/bridge/github/import.go
@@ -70,7 +70,7 @@ func (gi *githubImporter) ImportAll(ctx context.Context, repo *cache.RepoCache,
if !b.NeedCommit() {
out <- core.NewImportNothing(b.Id(), "no imported operation")
- } else if err := b.CommitAsNeeded(); err != nil {
+ } else if err := b.Commit(); err != nil {
// commit bug state
err = fmt.Errorf("bug commit: %v", err)
out <- core.NewImportError(err, "")