From ee96c733a19fba5cffbd16178090a3a179455f67 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 24 Oct 2023 09:36:34 +0800 Subject: [PATCH] Revert "fix orphan check for deleted branch (#27310) (#27320)" This reverts commit 2138661dae2fbb88eba1a04d48faf27a2cebb934. --- modules/doctor/dbconsistency.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/doctor/dbconsistency.go b/modules/doctor/dbconsistency.go index a0637b8982cf..548687355605 100644 --- a/modules/doctor/dbconsistency.go +++ b/modules/doctor/dbconsistency.go @@ -168,9 +168,9 @@ func checkDBConsistency(ctx context.Context, logger log.Logger, autofix bool) er // find protected branches without existing repository genericOrphanCheck("Protected Branches without existing repository", "protected_branch", "repository", "protected_branch.repo_id=repository.id"), - // find branches without existing repository - genericOrphanCheck("Branches without existing repository", - "branch", "repository", "branch.repo_id=repository.id"), + // find deleted branches without existing repository + genericOrphanCheck("Deleted Branches without existing repository", + "deleted_branch", "repository", "deleted_branch.repo_id=repository.id"), // find LFS locks without existing repository genericOrphanCheck("LFS locks without existing repository", "lfs_lock", "repository", "lfs_lock.repo_id=repository.id"),