Fix build errors

This commit is contained in:
Chongyi Zheng 2024-03-02 05:54:16 -05:00
parent b143f4ae81
commit e8119df983
No known key found for this signature in database
GPG Key ID: 4B90B77407DA2359
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ func MigrateRepositoryGitData(ctx context.Context, u *user_model.User,
// note: this will greatly improve release (tag) sync
// for pull-mirrors with many tags
repo.IsMirror = opts.Mirror
if err = repo_module.SyncReleasesWithTags(ctx, repo, gitRepo); err != nil {
if err = repo_module.SyncReleasesWithTags(ctx, repo, gitRepo, true); err != nil {
log.Error("Failed to synchronize tags to releases for repository: %v", err)
}
}