Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-12-11 05:51:57 +01:00
forgejo/services/doctor
Gergely Nagy c79cba8d55
[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)
(cherry picked from commit 049df69eda)

Conflicts:
	services/doctor/push_mirror_consistency.go
	https://codeberg.org/forgejo/forgejo/pulls/2214
2024-01-22 18:13:41 +00:00
..
authorizedkeys.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
breaking.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
checkOldArchives.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
dbconsistency.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
dbversion.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
doctor.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
fix8312.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
fix16961.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
fix16961_test.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
heads.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
lfs.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
mergebase.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
misc.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
paths.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
push_mirror_consistency.go [GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853) 2024-01-22 18:13:41 +00:00
repository.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
storage.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
usertype.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00