aboutsummaryrefslogtreecommitdiffstats
path: root/modules/doctor/doctor.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/doctor/doctor.go')
-rw-r--r--modules/doctor/doctor.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/doctor/doctor.go b/modules/doctor/doctor.go
index c8975a788e..5d14cef55c 100644
--- a/modules/doctor/doctor.go
+++ b/modules/doctor/doctor.go
@@ -11,6 +11,7 @@ import (
"strings"
"code.gitea.io/gitea/models/db"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
)
@@ -49,7 +50,11 @@ func initDBDisableConsole(ctx context.Context, disableConsole bool) error {
setting.NewXORMLogService(disableConsole)
if err := db.InitEngine(ctx); err != nil {
- return fmt.Errorf("models.SetEngine: %v", err)
+ return fmt.Errorf("db.InitEngine: %w", err)
+ }
+ // some doctor sub-commands need to use git command
+ if err := git.InitFull(ctx); err != nil {
+ return fmt.Errorf("git.InitFull: %w", err)
}
return nil
}
code-signing-crl'>automated/noid/stable27-update-code-signing-crl Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/.codecov.yml
blob: 0514262113ec22378b3c43a8408dd989d1382337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
codecov:
  branch: master
  ci:
    - drone.nextcloud.com
    - !scrutinizer-ci.com

coverage:
  precision: 2
  round: down
  range: "70...100"
  status:
    project: off
    patch: off

comment: off