mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Use "main" as default branch name (#19354)
* Use "main" as default branch name * fix test code
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user