mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 00:11:04 +00:00 
			
		
		
		
	fix #1208
This commit is contained in:
		
					parent
					
						
							
								eea9302d8f
							
						
					
				
			
			
				commit
				
					
						c44e1c7ca9
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -486,7 +486,7 @@ func initRepository(e Engine, repoPath string, u *User, repo *Repository, initRe
 | 
			
		|||
		}
 | 
			
		||||
	} else if com.IsSliceContainsStr(Gitignores, repoLang) {
 | 
			
		||||
		if err = ioutil.WriteFile(targetPath,
 | 
			
		||||
			bindata.MustAsset(path.Join("conf/gitignore", repoLang)), os.ModePerm); err != nil {
 | 
			
		||||
			bindata.MustAsset(path.Join("conf/gitignore", repoLang)), 0644); err != nil {
 | 
			
		||||
			return fmt.Errorf("generate gitignore: %v", err)
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
| 
						 | 
				
			
			@ -502,7 +502,7 @@ func initRepository(e Engine, repoPath string, u *User, repo *Repository, initRe
 | 
			
		|||
		}
 | 
			
		||||
	} else if com.IsSliceContainsStr(Licenses, license) {
 | 
			
		||||
		if err = ioutil.WriteFile(targetPath,
 | 
			
		||||
			bindata.MustAsset(path.Join("conf/license", license)), os.ModePerm); err != nil {
 | 
			
		||||
			bindata.MustAsset(path.Join("conf/license", license)), 0644); err != nil {
 | 
			
		||||
			return fmt.Errorf("generate license: %v", err)
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue