1
0
Fork 0
forgejo/models/repo
Gergely Nagy f4e19d3323
[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)
2024-01-01 15:27:12 +01:00
..
archiver.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
attachment.go [FEAT] allow setting the update date on issues and comments 2024-01-01 13:50:27 +01:00
attachment_test.go
avatar.go
collaboration.go
collaboration_test.go
fork.go
fork_test.go
git.go
issue.go
language_stats.go
main_test.go
mirror.go
pushmirror.go [GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853) 2024-01-01 15:27:12 +01:00
pushmirror_test.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
redirect.go
redirect_test.go
release.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
release_test.go
repo.go
repo_indexer.go
repo_list.go
repo_list_test.go [GITEA] Improve HTML title on repositories 2024-01-01 15:20:55 +01:00
repo_test.go
repo_unit.go
repo_unit_test.go
search.go
star.go
star_test.go
topic.go
topic_test.go
update.go
upload.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
user_repo.go
user_repo_test.go
watch.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
watch_test.go
wiki.go
wiki_test.go