mirror of
				https://github.com/gohugoio/hugo.git
				synced 2025-11-04 04:27:46 -05:00 
			
		
		
		
	
							parent
							
								
									c7646551be
								
							
						
					
					
						commit
						94b5be67fc
					
				@ -663,6 +663,12 @@ func (c *commandeer) getDirList() []string {
 | 
			
		||||
			return nil
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// Skip .git directories.
 | 
			
		||||
		// Related to https://github.com/spf13/hugo/issues/3468.
 | 
			
		||||
		if fi.Name() == ".git" {
 | 
			
		||||
			return nil
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if fi.Mode()&os.ModeSymlink == os.ModeSymlink {
 | 
			
		||||
			link, err := filepath.EvalSymlinks(path)
 | 
			
		||||
			if err != nil {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user