forgejo/tests
Gergely Nagy e418ea8082
[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)
2023-12-18 16:39:20 +01:00
..
e2e
fuzz
gitea-lfs-meta
gitea-repositories-meta [GITEA] Detect file rename and show in history 2023-12-18 16:39:19 +01:00
integration [GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853) 2023-12-18 16:39:20 +01:00
testdata/data/attachments/a/0
mssql.ini.tmpl
mysql.ini.tmpl [CI] disable meilisearch/elasticsearch test, no server yet in CI 2023-12-18 14:39:08 +01:00
pgsql.ini.tmpl
sqlite.ini.tmpl [TESTS] increase test-sqlite log level to Trace 2023-12-18 15:10:54 +01:00
test_utils.go [TESTS] tests.AddFixtures helper loads additional per-test fixtures 2023-12-18 15:12:41 +01:00