loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix orphan check for deleted branch (#27310)

- Modify the deleted branch orphan check to check for the new table
instead.
- Regression from 6e19484f4d3bf372212f2da462110a1a8c10cbf2
- Resolves https://codeberg.org/forgejo/forgejo/issues/1522

(cherry picked from commit c1d888686fe445e4edecb9d835c5b3893b574b75)

Co-authored-by: Gusted <postmaster@gusted.xyz>

authored by

Earl Warren
Gusted
and committed by
GitHub
98f02203 673cf6af

+3 -3
+3 -3
modules/doctor/dbconsistency.go
··· 168 168 // find protected branches without existing repository 169 169 genericOrphanCheck("Protected Branches without existing repository", 170 170 "protected_branch", "repository", "protected_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"), 171 + // find branches without existing repository 172 + genericOrphanCheck("Branches without existing repository", 173 + "branch", "repository", "branch.repo_id=repository.id"), 174 174 // find LFS locks without existing repository 175 175 genericOrphanCheck("LFS locks without existing repository", 176 176 "lfs_lock", "repository", "lfs_lock.repo_id=repository.id"),