Skip to content

Commit 6903d51

Browse files
fix: git extractor commit rawdataorigin is empty (#7658) (#7659)
* fix: git extractor commit rawdataorigin is empty * fix: remove debugging print Co-authored-by: Klesh Wong <[email protected]>
1 parent bbe574a commit 6903d51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backend/plugins/gitextractor/store/database.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ limitations under the License.
1818
package store
1919

2020
import (
21+
"reflect"
22+
2123
"github.com/apache/incubator-devlake/core/context"
2224
"github.com/apache/incubator-devlake/core/errors"
2325
"github.com/apache/incubator-devlake/core/models/common"
2426
"github.com/apache/incubator-devlake/core/models/domainlayer"
2527
"github.com/apache/incubator-devlake/core/models/domainlayer/code"
2628
"github.com/apache/incubator-devlake/core/models/domainlayer/crossdomain"
2729
helper "github.com/apache/incubator-devlake/helpers/pluginhelper/api"
28-
"reflect"
2930
)
3031

3132
const BathSize = 100
@@ -87,7 +88,7 @@ func (d *Database) Commits(commit *code.Commit) errors.Error {
8788
if err != nil {
8889
return err
8990
}
90-
d.updateRawDataFields(&account.RawDataOrigin)
91+
d.updateRawDataFields(&commit.RawDataOrigin)
9192
return commitBatch.Add(commit)
9293
}
9394

0 commit comments

Comments
 (0)