mirror of
				https://github.com/packwiz/packwiz.git
				synced 2025-10-31 18:44:33 +01:00 
			
		
		
		
	Prevent the pack root directory from being packwizignored
This commit is contained in:
		| @@ -234,6 +234,11 @@ func (in *Index) Refresh() error { | ||||
| 			return err | ||||
| 		} | ||||
|  | ||||
| 		// Never ignore pack root itself (gitignore doesn't allow ignoring the root) | ||||
| 		if path == packRoot { | ||||
| 			return nil | ||||
| 		} | ||||
|  | ||||
| 		if info.IsDir() { | ||||
| 			// Don't traverse ignored directories (consistent with Git handling of ignored dirs) | ||||
| 			if ignore.MatchesPath(path) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user