fix(comment): RunMainAppWithStdin is the right name to search for (#13071)

Typos that slipped in https://codeberg.org/forgejo/forgejo/pulls/12855#issuecomment-17336144 (thanks @clouds666

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.

### Release notes

- [ ] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change.
- [x] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change.

*The decision if the pull request will be shown in the release notes is up to the mergers / release team.*

The content of the `release-notes/<pull request number>.md` file will serve as the basis for the release notes. If the file does not exist, the title of the pull request will be used instead.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13071
Reviewed-by: Clouds <me@cloudsftp.de>
Reviewed-by: limiting-factor <limiting-factor@noreply.codeberg.org>
This commit is contained in:
oliverpool 2026-06-13 03:46:44 +02:00 committed by Mathieu Fenniak
commit 36deaf6ae0
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ func MainTest(m *testing.M) {
os.Exit(1)
}
setting.AppWorkPath = giteaRoot
setting.AppPath = path.Join(giteaRoot, "gitea_migrations-should-not-need-a-binary") // use WrapMainAppPath if a binary is needed
setting.AppPath = path.Join(giteaRoot, "gitea_migrations-should-not-need-a-binary") // use RunMainAppWithStdin if a binary is needed
giteaConf := os.Getenv("GITEA_CONF")
if giteaConf == "" {

View file

@ -51,7 +51,7 @@ func initMigrationTest(t *testing.T) func() {
deferFn := tests.PrintCurrentTest(t, 2)
root := getRoot(t)
setting.AppPath = path.Join(root, "migration-test-should-not-need-a-binary") // use WrapMainAppPath if a binary is needed
setting.AppPath = path.Join(root, "migration-test-should-not-need-a-binary") // use RunMainAppWithStdin if a binary is needed
giteaConf := os.Getenv("GITEA_CONF")
if giteaConf == "" {