-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Global default branch setting #11918
Global default branch setting #11918
Conversation
🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sadly it is not that easy
Line 355 in 262fce6
|
Lines 380 to 381 in 262fce6
|
Lines 411 to 412 in 262fce6
|
gitea/templates/repo/empty.tmpl Line 55 in 262fce6
|
Lines 414 to 415 in 262fce6
|
These issues existed before too if user changed their default branch, nice catch. |
Actually, this looks like it was intentionally there so that even if repo is created with other branch as default, and then I am not sure this is desired at all, either with |
Needs entry in |
@6543 this one has to be kept this way as |
…ea into default-branch-option
@silverwind updated. |
@techknowlogick We can add an extra git command ref. https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
per my comment
@lunny updated |
* Global default branch setting * add to app.ini example per @silverwind * update per @lunny Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* Global default branch setting (#11918) * Global default branch setting * add to app.ini example per @silverwind * update per @lunny Co-authored-by: John Olheiser <john.olheiser@gmail.com> * Update modules/setting/repository.go Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* Global default branch setting * add to app.ini example per @silverwind * update per @lunny Co-authored-by: John Olheiser <john.olheiser@gmail.com>
as title