diff --git a/skilljail/classes.py b/skilljail/classes.py index a5c0fca..d61ce3b 100644 --- a/skilljail/classes.py +++ b/skilljail/classes.py @@ -103,7 +103,7 @@ def _glob_component_hits(path: str, name_pattern: str) -> tuple[bool, bool]: """For ``**/name`` patterns. Returns (rule_inside_or_exact, rule_covers). ``name_pattern`` may be multi-component (``.git/hooks``). - A path is "inside" if some suffix of its components starts with the pattern components. + A path is "inside" if the pattern components appear as a contiguous run in its components. A path "covers" the pattern if it is a parent of a directory that *could* contain it. Only very broad roots (home or '/') count, and the caller handles those, so the second value returned here is always False.