mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	API change
This commit is contained in:
		@@ -455,7 +455,7 @@ func initRepository(f string, user *User, repo *Repository, initReadme bool, rep
 | 
				
			|||||||
	if repoLang != "" {
 | 
						if repoLang != "" {
 | 
				
			||||||
		filePath := "conf/gitignore/" + repoLang
 | 
							filePath := "conf/gitignore/" + repoLang
 | 
				
			||||||
		if com.IsFile(filePath) {
 | 
							if com.IsFile(filePath) {
 | 
				
			||||||
			if _, err := com.Copy(filePath,
 | 
								if err := com.Copy(filePath,
 | 
				
			||||||
				filepath.Join(tmpDir, fileName["gitign"])); err != nil {
 | 
									filepath.Join(tmpDir, fileName["gitign"])); err != nil {
 | 
				
			||||||
				return err
 | 
									return err
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
@@ -466,7 +466,7 @@ func initRepository(f string, user *User, repo *Repository, initReadme bool, rep
 | 
				
			|||||||
	if license != "" {
 | 
						if license != "" {
 | 
				
			||||||
		filePath := "conf/license/" + license
 | 
							filePath := "conf/license/" + license
 | 
				
			||||||
		if com.IsFile(filePath) {
 | 
							if com.IsFile(filePath) {
 | 
				
			||||||
			if _, err := com.Copy(filePath,
 | 
								if err := com.Copy(filePath,
 | 
				
			||||||
				filepath.Join(tmpDir, fileName["license"])); err != nil {
 | 
									filepath.Join(tmpDir, fileName["license"])); err != nil {
 | 
				
			||||||
				return err
 | 
									return err
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user