1
0
Fork 0
forgejo/modules/doctor
Gergely Nagy b15bafcbc7
[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)
2023-12-04 14:22:22 +01:00
..
authorizedkeys.go Another round of db.DefaultContext refactor (#27103) 2023-09-25 13:17:37 +00:00
breaking.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
checkOldArchives.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
dbconsistency.go Remove action runners on user deletion (#27902) 2023-11-05 13:48:32 +01:00
dbversion.go Support disabling database auto migration (#22053) 2022-12-07 09:58:31 -06:00
doctor.go Refactor path & config system (#25330) 2023-06-21 13:50:26 +08: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 Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
heads.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
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 Refactor path & config system (#25330) 2023-06-21 13:50:26 +08:00
push_mirror_consistency.go [GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853) 2023-12-04 14:22:22 +01:00
repository.go Fix delete-orphaned-repos (#28200) 2023-11-24 14:46:19 +00:00
storage.go Check LFS/Packages settings in dump and doctor command (#23631) 2023-03-23 20:30:28 +08:00
usertype.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00