summaryrefslogtreecommitdiffstats
path: root/cmd/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/admin.go')
-rw-r--r--cmd/admin.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/admin.go b/cmd/admin.go
index 745427ca24..a4f48b0513 100644
--- a/cmd/admin.go
+++ b/cmd/admin.go
@@ -355,6 +355,10 @@ func runRepoSyncReleases(_ *cli.Context) error {
return err
}
+ if err := git.InitSimple(ctx); err != nil {
+ return err
+ }
+
log.Trace("Synchronizing repository releases (this may take a while)")
for page := 1; ; page++ {
repos, count, err := repo_model.SearchRepositoryByName(ctx, &repo_model.SearchRepoOptions{