Skip to content

Commit

Permalink
Fix missing license when sync mirror (go-gitea#33255)
Browse files Browse the repository at this point in the history
  • Loading branch information
yp05327 authored and GiteaBot committed Jan 14, 2025
1 parent 10b6047 commit a7a7034
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 a7a7034

Please sign in to comment.