There is a setting in Gitea (as described here) to set the default branch name of new repositories. However, I cannot get it to work.
The default branch is "Master".
I added the following to my custom/conf/app.ini
file:
DEFAULT_BRANCH = main
under the [repository]
section of that file.
I then restart my Gitea install (./stop
followed by ./start
— output messages are good). However, when I create a new repository, the default branch is still "Master". I have tried numerous iterations of this (double quotes around "main", single quotes, no quotes, etc.—I believe no quotes is correct) without any luck.
In fact, the only settings that I seem able to change are APP_NAME, RUN_MODE, ROOT, and DEFAULT_PRIVATE.
Any advice on what to try next?