This is an automated email from the ASF dual-hosted git repository.

abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new bf5c3e9ca fix: git extractor commit rawdataorigin is empty (#7658)
bf5c3e9ca is described below

commit bf5c3e9ca0c04918b7e9fb9bb46f2f4f91bb309d
Author: Klesh Wong <[email protected]>
AuthorDate: Mon Jun 24 21:09:11 2024 +0800

    fix: git extractor commit rawdataorigin is empty (#7658)
    
    * fix: git extractor commit rawdataorigin is empty
    
    * fix: remove debugging print
---
 backend/plugins/gitextractor/store/database.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/backend/plugins/gitextractor/store/database.go 
b/backend/plugins/gitextractor/store/database.go
index 63ec7e2de..5e03359f8 100644
--- a/backend/plugins/gitextractor/store/database.go
+++ b/backend/plugins/gitextractor/store/database.go
@@ -18,6 +18,8 @@ limitations under the License.
 package store
 
 import (
+       "reflect"
+
        "github.com/apache/incubator-devlake/core/context"
        "github.com/apache/incubator-devlake/core/errors"
        "github.com/apache/incubator-devlake/core/models/common"
@@ -25,7 +27,6 @@ import (
        "github.com/apache/incubator-devlake/core/models/domainlayer/code"
        
"github.com/apache/incubator-devlake/core/models/domainlayer/crossdomain"
        helper "github.com/apache/incubator-devlake/helpers/pluginhelper/api"
-       "reflect"
 )
 
 const BathSize = 100
@@ -87,7 +88,7 @@ func (d *Database) Commits(commit *code.Commit) errors.Error {
        if err != nil {
                return err
        }
-       d.updateRawDataFields(&account.RawDataOrigin)
+       d.updateRawDataFields(&commit.RawDataOrigin)
        return commitBatch.Add(commit)
 }
 

Reply via email to