Skip to content

Commit a7a7034

Browse files
yp05327GiteaBot
authored andcommitted
Fix missing license when sync mirror (go-gitea#33255)
Fix go-gitea#33222
1 parent 10b6047 commit a7a7034

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)