mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 00:11:04 +00:00 
			
		
		
		
	safe check
This commit is contained in:
		
					parent
					
						
							
								04806b614e
							
						
					
				
			
			
				commit
				
					
						67ced4aaca
					
				
			
		
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -684,6 +684,12 @@ func cleanUpMigrateRepoInfo(x *xorm.Engine) (err error) {
 | 
			
		|||
		}
 | 
			
		||||
 | 
			
		||||
		configPath := filepath.Join(setting.RepoRootPath, user.LowerName, repo.LowerName+".git/config")
 | 
			
		||||
 | 
			
		||||
		// In case repository file is somehow missing.
 | 
			
		||||
		if !com.IsFile(configPath) {
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		cfg, err := ini.Load(configPath)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			return fmt.Errorf("open config file: %v", err)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue