Skip to content

Commit 2984a7c

Browse files
GiteaBotyp05327
andauthored
Fix missing license when sync mirror (#33255) (#33258)
Backport #33255 by yp05327 Fix #33222 Co-authored-by: yp05327 <[email protected]>
1 parent 80cc87b commit 2984a7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: models/repo/license.go

+1
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)