Use "main" as default branch name (#19354)
* Use "main" as default branch name * fix test code
This commit is contained in:
parent
1dfa26e00e
commit
d906858847
5 changed files with 5 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue