Skip to content

Commit 4672ddc

Browse files
authored
Fix missing license when sync mirror (#33255)
Fix #33222
1 parent a98a836 commit 4672ddc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/repo/license.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ func UpdateRepoLicenses(ctx context.Context, repo *Repository, commitID string,
5454
for _, o := range oldLicenses {
5555
// Update already existing license
5656
if o.License == license {
57+
o.CommitID = commitID
5758
if _, err := db.GetEngine(ctx).ID(o.ID).Cols("`commit_id`").Update(o); err != nil {
5859
return err
5960
}

0 commit comments

Comments
 (0)