mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Add default values for settings (#455)
* add default values for settings * more default values * more default settings and labels resource * mv locale to options
This commit is contained in:
		@@ -843,6 +843,8 @@ func getRepoInitFile(tp, name string) ([]byte, error) {
 | 
			
		||||
		return options.Gitignore(cleanedName)
 | 
			
		||||
	case "license":
 | 
			
		||||
		return options.License(cleanedName)
 | 
			
		||||
	case "label":
 | 
			
		||||
		return options.Labels(cleanedName)
 | 
			
		||||
	default:
 | 
			
		||||
		return []byte{}, fmt.Errorf("Invalid init file type")
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user