mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Merge setting.InitXXX into one function with options (#24389)
This PR will merge 3 Init functions on setting packages as 1 and introduce an options struct.
This commit is contained in:
		@@ -150,7 +150,7 @@ func MainTest(m *testing.M) {
 | 
			
		||||
	setting.AppDataPath = tmpDataPath
 | 
			
		||||
 | 
			
		||||
	setting.SetCustomPathAndConf("", "", "")
 | 
			
		||||
	setting.InitProviderAndLoadCommonSettingsForTest()
 | 
			
		||||
	unittest.InitSettings()
 | 
			
		||||
	if err = git.InitFull(context.Background()); err != nil {
 | 
			
		||||
		fmt.Printf("Unable to InitFull: %v\n", err)
 | 
			
		||||
		os.Exit(1)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user