Skip to content

Commit a1c232c

Browse files
authored
Revert "fix orphan check for deleted branch (#27310) (#27320)" (#27763)
Because branch table is created until 1.21 Fix #27508
1 parent 63512cd commit a1c232c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/doctor/dbconsistency.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ func checkDBConsistency(ctx context.Context, logger log.Logger, autofix bool) er
168168
// find protected branches without existing repository
169169
genericOrphanCheck("Protected Branches without existing repository",
170170
"protected_branch", "repository", "protected_branch.repo_id=repository.id"),
171-
// find branches without existing repository
172-
genericOrphanCheck("Branches without existing repository",
173-
"branch", "repository", "branch.repo_id=repository.id"),
171+
// find deleted branches without existing repository
172+
genericOrphanCheck("Deleted Branches without existing repository",
173+
"deleted_branch", "repository", "deleted_branch.repo_id=repository.id"),
174174
// find LFS locks without existing repository
175175
genericOrphanCheck("LFS locks without existing repository",
176176
"lfs_lock", "repository", "lfs_lock.repo_id=repository.id"),

0 commit comments

Comments
 (0)