Skip to content

Commit

Permalink
Fix missing license when sync mirror (go-gitea#33255) (go-gitea#33258)
Browse files Browse the repository at this point in the history
Backport go-gitea#33255 by yp05327

Fix go-gitea#33222

Co-authored-by: yp05327 <[email protected]>
  • Loading branch information
GiteaBot and yp05327 authored Jan 14, 2025
1 parent 80cc87b commit 2984a7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/repo/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func UpdateRepoLicenses(ctx context.Context, repo *Repository, commitID string,
for _, o := range oldLicenses {
// Update already existing license
if o.License == license {
o.CommitID = commitID
if _, err := db.GetEngine(ctx).ID(o.ID).Cols("`commit_id`").Update(o); err != nil {
return err
}
Expand Down

0 comments on commit 2984a7c

Please sign in to comment.