diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-04-09 12:26:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 23:26:48 -0500 |
commit | d906858847e0d345bc02f04b4037dfa80650889e (patch) | |
tree | 7632699bb22dd4f7e6b61113835e60ddf7aaf34d /integrations | |
parent | 1dfa26e00e8e1ce6f6125335871da1d402a63466 (diff) | |
download | gitea-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 'integrations')
-rw-r--r-- | integrations/integration_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/integrations/integration_test.go b/integrations/integration_test.go index e7ceb33e96..8d2bfe9383 100644 --- a/integrations/integration_test.go +++ b/integrations/integration_test.go @@ -165,6 +165,7 @@ func initIntegrationTest() { setting.SetCustomPathAndConf("", "", "") setting.LoadForTest() + setting.Repository.DefaultBranch = "master" // many test code still assume that default branch is called "master" _ = util.RemoveAll(models.LocalCopyPath()) git.CheckLFSVersion() setting.InitDBConfig() |