Skip to content

Commit

Permalink
fix: git extractor commit rawdataorigin is empty (#7658)
Browse files Browse the repository at this point in the history
* fix: git extractor commit rawdataorigin is empty

* fix: remove debugging print
  • Loading branch information
klesh committed Jun 24, 2024
1 parent 8d0be90 commit bf5c3e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/plugins/gitextractor/store/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ 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"
"github.com/apache/incubator-devlake/core/models/domainlayer"
"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
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit bf5c3e9

Please sign in to comment.