fix(healthcheck/forbidden): skip .
	
		
			
	
		
	
	
				
					
				
			This commit is contained in:
		
							parent
							
								
									84e168dad6
								
							
						
					
					
						commit
						83b6cb6b2c
					
				|  | @ -25,7 +25,10 @@ func getForbiddens(root string, fileList []string) ([]string, error) { | ||||||
| 			return err | 			return err | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		if info.IsDir() && info.Name() == ".git" { | 		if info.IsDir() && (info.Name() == ".") { | ||||||
|  | 			return nil | ||||||
|  | 		} | ||||||
|  | 		if info.IsDir() && (info.Name() == ".git") { | ||||||
| 			return filepath.SkipDir | 			return filepath.SkipDir | ||||||
| 		} else { | 		} else { | ||||||
| 			match := ignore.Relative(info.Name(), true) | 			match := ignore.Relative(info.Name(), true) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 zzjc1234
						zzjc1234