|
|
@ -307,6 +307,11 @@ func runSync(ctx context.Context, m *repo_model.Mirror) ([]*mirrorSyncResult, bo |
|
|
|
return nil, false |
|
|
|
return nil, false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.Trace("SyncMirrors [repo: %-v]: syncing branches...", m.Repo) |
|
|
|
|
|
|
|
if _, err = repo_module.SyncRepoBranchesWithRepo(ctx, m.Repo, gitRepo, 0); err != nil { |
|
|
|
|
|
|
|
log.Error("SyncMirrors [repo: %-v]: failed to synchronize branches: %v", m.Repo, err) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
log.Trace("SyncMirrors [repo: %-v]: syncing releases with tags...", m.Repo) |
|
|
|
log.Trace("SyncMirrors [repo: %-v]: syncing releases with tags...", m.Repo) |
|
|
|
if err = repo_module.SyncReleasesWithTags(m.Repo, gitRepo); err != nil { |
|
|
|
if err = repo_module.SyncReleasesWithTags(m.Repo, gitRepo); err != nil { |
|
|
|
log.Error("SyncMirrors [repo: %-v]: failed to synchronize tags to releases: %v", m.Repo, err) |
|
|
|
log.Error("SyncMirrors [repo: %-v]: failed to synchronize tags to releases: %v", m.Repo, err) |
|
|
|