0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 15:53:07 -05:00
forgejo/modules/doctor
Gergely Nagy 049df69eda
[GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853)
This adds a new `doctor` check: `fix-push-mirrors-without-git-remote`. The new check looks for push mirrors that do not have their remotes configured in git. If automatic fixing is enabled, it will remove these push mirrors from the database.

The check is not run by default, and thus, must be invoked manually. It should be usable in a half-migrated state, too, and as such, fixes #1800.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1853
Co-authored-by: Gergely Nagy <forgejo@gergo.csillger.hu>
Co-committed-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit 9038e07ef3)
(cherry picked from commit b15bafcbc7)
(cherry picked from commit 93ba05a2dd)
(cherry picked from commit e418ea8082)
(cherry picked from commit 321790a91e)
(cherry picked from commit f4e19d3323)
(cherry picked from commit 4d9923dee8)
2024-01-15 16:11:59 +00:00
..
authorizedkeys.go Another round of db.DefaultContext refactor (#27103) 2023-09-25 13:17:37 +00:00
breaking.go
checkOldArchives.go
dbconsistency.go Add orphaned topic consistency check (#28507) 2023-12-18 15:32:08 +00:00
dbversion.go
doctor.go Improve doctor cli behavior (#28422) 2023-12-11 15:55:10 +00:00
fix8312.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
fix16961.go Even more db.DefaultContext refactor (#27352) 2023-10-03 10:30:41 +00:00
fix16961_test.go
heads.go
lfs.go Simplify the LFS GC logger usage (#25717) 2023-07-06 16:52:41 +00:00
mergebase.go Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
misc.go Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
paths.go
push_mirror_consistency.go [GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853) 2024-01-15 16:11:59 +00:00
repository.go Initalize stroage for orphaned repository doctor (#28487) 2023-12-16 12:17:39 +00:00
storage.go
usertype.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00