mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00: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:
		@@ -51,8 +51,7 @@ func runRestoreRepository(c *cli.Context) error {
 | 
			
		||||
	ctx, cancel := installSignals()
 | 
			
		||||
	defer cancel()
 | 
			
		||||
 | 
			
		||||
	setting.InitProviderFromExistingFile()
 | 
			
		||||
	setting.LoadCommonSettings()
 | 
			
		||||
	setting.Init(&setting.Options{})
 | 
			
		||||
	var units []string
 | 
			
		||||
	if s := c.String("units"); s != "" {
 | 
			
		||||
		units = strings.Split(s, ",")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user