mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 13:06:30 +02:00
Prevent the pack root directory from being packwizignored
This commit is contained in:
parent
9fc9ee5e09
commit
9bddd21d32
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user