From a0e272d95ab8f24c89b3d7fc5e13044185f5f185 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Sat, 17 May 2025 00:33:04 +0800 Subject: [PATCH] Add missing setting load in dump-repo command (#34479) (#34489) Backport #34479 by @lunny Fix #34465 Co-authored-by: Lunny Xiao --- cmd/dump_repo.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/dump_repo.go b/cmd/dump_repo.go index 3a24cf6c5f..11d0270404 100644 --- a/cmd/dump_repo.go +++ b/cmd/dump_repo.go @@ -80,6 +80,11 @@ wiki, issues, labels, releases, release_assets, milestones, pull_requests, comme } func runDumpRepository(ctx *cli.Context) error { + setupConsoleLogger(log.INFO, log.CanColorStderr, os.Stderr) + + setting.DisableLoggerInit() + setting.LoadSettings() // cannot access skip_tls_verify settings otherwise + stdCtx, cancel := installSignals() defer cancel()