Skip to content

Commit e76ccbe

Browse files
committed
Use "main" as default branch name
1 parent 1dfa26e commit e76ccbe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

custom/conf/app.example.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ PATH =
879879
;DISABLE_STARS = false
880880
;;
881881
;; The default branch name of new repositories
882-
;DEFAULT_BRANCH = master
882+
;DEFAULT_BRANCH = main
883883
;;
884884
;; Allow adoption of unadopted repositories
885885
;ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES = false

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
7575
- `PREFIX_ARCHIVE_FILES`: **true**: Prefix archive files by placing them in a directory named after the repository.
7676
- `DISABLE_MIGRATIONS`: **false**: Disable migrating feature.
7777
- `DISABLE_STARS`: **false**: Disable stars feature.
78-
- `DEFAULT_BRANCH`: **master**: Default branch name of all repositories.
78+
- `DEFAULT_BRANCH`: **main**: Default branch name of all repositories.
7979
- `ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`: **false**: Allow non-admin users to adopt unadopted repositories
8080
- `ALLOW_DELETION_OF_UNADOPTED_REPOSITORIES`: **false**: Allow non-admin users to delete unadopted repositories
8181

modules/setting/repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ var (
154154
PrefixArchiveFiles: true,
155155
DisableMigrations: false,
156156
DisableStars: false,
157-
DefaultBranch: "master",
157+
DefaultBranch: "main",
158158

159159
// Repository editor settings
160160
Editor: struct {

0 commit comments

Comments
 (0)