mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Replace Gogs with Gitea (#520)
This commit is contained in:
		@@ -172,7 +172,7 @@ func parseKeyString(content string) (string, error) {
 | 
			
		||||
// writeTmpKeyFile writes key content to a temporary file
 | 
			
		||||
// and returns the name of that file, along with any possible errors.
 | 
			
		||||
func writeTmpKeyFile(content string) (string, error) {
 | 
			
		||||
	tmpFile, err := ioutil.TempFile(setting.SSH.KeyTestPath, "gogs_keytest")
 | 
			
		||||
	tmpFile, err := ioutil.TempFile(setting.SSH.KeyTestPath, "gitea_keytest")
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return "", fmt.Errorf("TempFile: %v", err)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user