-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use "main" as default branch name #19354
Conversation
20d2de0
to
9d72861
Compare
Not sure if this is "breaking", but it likely deserves a mention on the changelog/blog for any tools that are assuming default is |
Added |
* giteaofficial/main: (22 commits) Add logic to switch between source/rendered on Markdown (go-gitea#19356) Fixed registry host value. (go-gitea#19363) [skip ci] Updated translations via Crowdin Allow package linking to private repository (go-gitea#19348) Use "main" as default branch name (go-gitea#19354) Move milestone to models/issues/ (go-gitea#19278) Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (go-gitea#19337) Remove dependent on session auth for api/v1 routers (go-gitea#19321) API: Search Issues, dont show 500 if filter result in empty list (go-gitea#19244) [skip ci] Updated translations via Crowdin Never use /api/v1 from Gitea UI Pages (go-gitea#19318) [skip ci] Updated translations via Crowdin Show ssh command directly in template instead of i18n translation (go-gitea#19335) Package registry changes (go-gitea#19305) [skip ci] Updated translations via Crowdin Add `ENABLE_SSH_LOG` to debugging problems (go-gitea#19316) Warn on SSH connection for incorrect configuration (go-gitea#19317) escape fake link Allow custom redirect for landing page (go-gitea#19324) [skip ci] Updated translations via Crowdin ...
* Use "main" as default branch name * fix test code
This comment was marked as off-topic.
This comment was marked as off-topic.
That's nothing with The Git community is doing so.
And more and more repositories and tools are using main as the default name. Sooner or later, the main will be the default name for all git eco-system. Following the community and eco-system will reduce many pains in the future. If you have other feasible plans, please suggest. |
I am going to lock this PR. Any further discussion should happen in a new issue so it's not lost to the void. |
Close #19351
This changes the the default value of
repository.DEFAULT_BRANCH
frommaster
tomain
.If some users have to use
master
as the default branch name, they should set theDEFAULT_BRANCH
option manually inapp.ini