summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-08-14 00:33:18 +0800
committerGitHub <noreply@github.com>2022-08-14 00:33:18 +0800
commit11dc6df5be5ae1da8d570e440f97060d2284dd13 (patch)
tree69ef29359c9fcb5dc89bb82c8cab68151b9d674b /cmd
parent3d7058adbec95036ca6eec6f988179cfdad9ba3f (diff)
downloadgitea-11dc6df5be5ae1da8d570e440f97060d2284dd13.tar.gz
gitea-11dc6df5be5ae1da8d570e440f97060d2284dd13.zip
Fix git.Init for doctor sub-command (#20782)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/doctor.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/cmd/doctor.go b/cmd/doctor.go
index 1a15dd2941..67a4ecc9c8 100644
--- a/cmd/doctor.go
+++ b/cmd/doctor.go
@@ -14,7 +14,6 @@ import (
"code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/models/migrations"
"code.gitea.io/gitea/modules/doctor"
- "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
@@ -128,11 +127,6 @@ func runDoctor(ctx *cli.Context) error {
stdCtx, cancel := installSignals()
defer cancel()
- // some doctor sub-commands need to use git command
- if err := git.InitFull(stdCtx); err != nil {
- return err
- }
-
// Silence the default loggers
log.DelNamedLogger("console")
log.DelNamedLogger(log.DEFAULT)