aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-04-09 12:26:48 +0800
committerGitHub <noreply@github.com>2022-04-08 23:26:48 -0500
commitd906858847e0d345bc02f04b4037dfa80650889e (patch)
tree7632699bb22dd4f7e6b61113835e60ddf7aaf34d /modules/setting
parent1dfa26e00e8e1ce6f6125335871da1d402a63466 (diff)
downloadgitea-d906858847e0d345bc02f04b4037dfa80650889e.tar.gz
gitea-d906858847e0d345bc02f04b4037dfa80650889e.zip
Use "main" as default branch name (#19354)
* Use "main" as default branch name * fix test code
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/repository.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/repository.go b/modules/setting/repository.go
index f4a2f4ad66..96b37f6980 100644
--- a/modules/setting/repository.go
+++ b/modules/setting/repository.go
@@ -154,7 +154,7 @@ var (
PrefixArchiveFiles: true,
DisableMigrations: false,
DisableStars: false,
- DefaultBranch: "master",
+ DefaultBranch: "main",
// Repository editor settings
Editor: struct {