|
|
@ -14,7 +14,6 @@ import ( |
|
|
|
"code.gitea.io/gitea/models/db" |
|
|
|
"code.gitea.io/gitea/models/db" |
|
|
|
"code.gitea.io/gitea/models/migrations" |
|
|
|
"code.gitea.io/gitea/models/migrations" |
|
|
|
"code.gitea.io/gitea/modules/doctor" |
|
|
|
"code.gitea.io/gitea/modules/doctor" |
|
|
|
"code.gitea.io/gitea/modules/git" |
|
|
|
|
|
|
|
"code.gitea.io/gitea/modules/log" |
|
|
|
"code.gitea.io/gitea/modules/log" |
|
|
|
"code.gitea.io/gitea/modules/setting" |
|
|
|
"code.gitea.io/gitea/modules/setting" |
|
|
|
|
|
|
|
|
|
|
@ -128,11 +127,6 @@ func runDoctor(ctx *cli.Context) error { |
|
|
|
stdCtx, cancel := installSignals() |
|
|
|
stdCtx, cancel := installSignals() |
|
|
|
defer cancel() |
|
|
|
defer cancel() |
|
|
|
|
|
|
|
|
|
|
|
// some doctor sub-commands need to use git command
|
|
|
|
|
|
|
|
if err := git.InitFull(stdCtx); err != nil { |
|
|
|
|
|
|
|
return err |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Silence the default loggers
|
|
|
|
// Silence the default loggers
|
|
|
|
log.DelNamedLogger("console") |
|
|
|
log.DelNamedLogger("console") |
|
|
|
log.DelNamedLogger(log.DEFAULT) |
|
|
|
log.DelNamedLogger(log.DEFAULT) |
|
|
|