summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-01-20 03:07:31 +0100
committerGitHub <noreply@github.com>2024-01-20 03:07:31 +0100
commit62f995203ab3397a6d995afb80767b33b1f00a1f (patch)
tree3c83f15d05f28ba31a660539cea042b24d8ef310
parentAdd support for sha256 repositories (#23894) (diff)
downloadforgejo-62f995203ab3397a6d995afb80767b33b1f00a1f.tar.xz
forgejo-62f995203ab3397a6d995afb80767b33b1f00a1f.zip
Move doctor package from modules to services (#28856)
-rw-r--r--cmd/doctor.go2
-rw-r--r--cmd/doctor_test.go2
-rw-r--r--services/doctor/authorizedkeys.go (renamed from modules/doctor/authorizedkeys.go)0
-rw-r--r--services/doctor/breaking.go (renamed from modules/doctor/breaking.go)0
-rw-r--r--services/doctor/checkOldArchives.go (renamed from modules/doctor/checkOldArchives.go)0
-rw-r--r--services/doctor/dbconsistency.go (renamed from modules/doctor/dbconsistency.go)0
-rw-r--r--services/doctor/dbversion.go (renamed from modules/doctor/dbversion.go)0
-rw-r--r--services/doctor/doctor.go (renamed from modules/doctor/doctor.go)0
-rw-r--r--services/doctor/fix16961.go (renamed from modules/doctor/fix16961.go)0
-rw-r--r--services/doctor/fix16961_test.go (renamed from modules/doctor/fix16961_test.go)0
-rw-r--r--services/doctor/fix8312.go (renamed from modules/doctor/fix8312.go)0
-rw-r--r--services/doctor/heads.go (renamed from modules/doctor/heads.go)0
-rw-r--r--services/doctor/lfs.go (renamed from modules/doctor/lfs.go)0
-rw-r--r--services/doctor/mergebase.go (renamed from modules/doctor/mergebase.go)0
-rw-r--r--services/doctor/misc.go (renamed from modules/doctor/misc.go)0
-rw-r--r--services/doctor/paths.go (renamed from modules/doctor/paths.go)0
-rw-r--r--services/doctor/repository.go (renamed from modules/doctor/repository.go)0
-rw-r--r--services/doctor/storage.go (renamed from modules/doctor/storage.go)0
-rw-r--r--services/doctor/usertype.go (renamed from modules/doctor/usertype.go)0
19 files changed, 2 insertions, 2 deletions
diff --git a/cmd/doctor.go b/cmd/doctor.go
index f891b12608..e433f4adc5 100644
--- a/cmd/doctor.go
+++ b/cmd/doctor.go
@@ -15,9 +15,9 @@ import (
"code.gitea.io/gitea/models/migrations"
migrate_base "code.gitea.io/gitea/models/migrations/base"
"code.gitea.io/gitea/modules/container"
- "code.gitea.io/gitea/modules/doctor"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/services/doctor"
"github.com/urfave/cli/v2"
"xorm.io/xorm"
diff --git a/cmd/doctor_test.go b/cmd/doctor_test.go
index 75376a567e..3e1ff299c5 100644
--- a/cmd/doctor_test.go
+++ b/cmd/doctor_test.go
@@ -7,8 +7,8 @@ import (
"context"
"testing"
- "code.gitea.io/gitea/modules/doctor"
"code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/services/doctor"
"github.com/stretchr/testify/assert"
"github.com/urfave/cli/v2"
diff --git a/modules/doctor/authorizedkeys.go b/services/doctor/authorizedkeys.go
index 050a4e7974..050a4e7974 100644
--- a/modules/doctor/authorizedkeys.go
+++ b/services/doctor/authorizedkeys.go
diff --git a/modules/doctor/breaking.go b/services/doctor/breaking.go
index 77e3d4e8ef..77e3d4e8ef 100644
--- a/modules/doctor/breaking.go
+++ b/services/doctor/breaking.go
diff --git a/modules/doctor/checkOldArchives.go b/services/doctor/checkOldArchives.go
index 390dfb43aa..390dfb43aa 100644
--- a/modules/doctor/checkOldArchives.go
+++ b/services/doctor/checkOldArchives.go
diff --git a/modules/doctor/dbconsistency.go b/services/doctor/dbconsistency.go
index e2dcb63f33..e2dcb63f33 100644
--- a/modules/doctor/dbconsistency.go
+++ b/services/doctor/dbconsistency.go
diff --git a/modules/doctor/dbversion.go b/services/doctor/dbversion.go
index 2b20cb2340..2b20cb2340 100644
--- a/modules/doctor/dbversion.go
+++ b/services/doctor/dbversion.go
diff --git a/modules/doctor/doctor.go b/services/doctor/doctor.go
index 559f8e06da..559f8e06da 100644
--- a/modules/doctor/doctor.go
+++ b/services/doctor/doctor.go
diff --git a/modules/doctor/fix16961.go b/services/doctor/fix16961.go
index d3f36d8d5c..d3f36d8d5c 100644
--- a/modules/doctor/fix16961.go
+++ b/services/doctor/fix16961.go
diff --git a/modules/doctor/fix16961_test.go b/services/doctor/fix16961_test.go
index 498ed9c8d5..498ed9c8d5 100644
--- a/modules/doctor/fix16961_test.go
+++ b/services/doctor/fix16961_test.go
diff --git a/modules/doctor/fix8312.go b/services/doctor/fix8312.go
index 4fc049873a..4fc049873a 100644
--- a/modules/doctor/fix8312.go
+++ b/services/doctor/fix8312.go
diff --git a/modules/doctor/heads.go b/services/doctor/heads.go
index 41fca01d57..41fca01d57 100644
--- a/modules/doctor/heads.go
+++ b/services/doctor/heads.go
diff --git a/modules/doctor/lfs.go b/services/doctor/lfs.go
index 5f110b8f97..5f110b8f97 100644
--- a/modules/doctor/lfs.go
+++ b/services/doctor/lfs.go
diff --git a/modules/doctor/mergebase.go b/services/doctor/mergebase.go
index de460c4190..de460c4190 100644
--- a/modules/doctor/mergebase.go
+++ b/services/doctor/mergebase.go
diff --git a/modules/doctor/misc.go b/services/doctor/misc.go
index f0b5966b54..f0b5966b54 100644
--- a/modules/doctor/misc.go
+++ b/services/doctor/misc.go
diff --git a/modules/doctor/paths.go b/services/doctor/paths.go
index 3f62d587ab..3f62d587ab 100644
--- a/modules/doctor/paths.go
+++ b/services/doctor/paths.go
diff --git a/modules/doctor/repository.go b/services/doctor/repository.go
index 6c33426636..6c33426636 100644
--- a/modules/doctor/repository.go
+++ b/services/doctor/repository.go
diff --git a/modules/doctor/storage.go b/services/doctor/storage.go
index f338537864..f338537864 100644
--- a/modules/doctor/storage.go
+++ b/services/doctor/storage.go
diff --git a/modules/doctor/usertype.go b/services/doctor/usertype.go
index ab32b78e62..ab32b78e62 100644
--- a/modules/doctor/usertype.go
+++ b/services/doctor/usertype.go