We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a98a836 commit 4672ddcCopy full SHA for 4672ddc
models/repo/license.go
@@ -54,6 +54,7 @@ func UpdateRepoLicenses(ctx context.Context, repo *Repository, commitID string,
54
for _, o := range oldLicenses {
55
// Update already existing license
56
if o.License == license {
57
+ o.CommitID = commitID
58
if _, err := db.GetEngine(ctx).ID(o.ID).Cols("`commit_id`").Update(o); err != nil {
59
return err
60
}
0 commit comments