fix(fermata): an editor's swap or backup file no longer refuses
One non-UTF-8 .env.swp blocked everything a checkout sent across a link, and would withhold every tool output under deny. A discovered *.swp, *.swo, *.swn, *.swx or *~ that cannot be read or parsed is now passed over under every setting. One that can be parsed stays known to the redactor. .bak, .env.gpg and [[file]] overrides keep the rule.
This commit is contained in:
@@ -181,6 +181,8 @@ Messages name the file and the line, never the line's text.
|
||||
|
||||
If the config itself cannot be read, the setting is unknown. Any layer with an uncommented line setting `deny` counts, even in a file that does not parse, and PreToolUse then refuses too. A layer whose bytes cannot be read counts as `deny`. Otherwise the hooks stay open.
|
||||
|
||||
Editor files never refuse: a discovered `*.swp`, `*.swo`, `*.swn`, `*.swx` or `*~` that cannot be read or parsed is passed over under every setting. If it can be parsed, its values are still redacted. `.bak` and `.env.gpg` follow the setting, and so does anything named in `[[file]]`.
|
||||
|
||||
```toml
|
||||
[enforcement]
|
||||
mode = "strict"
|
||||
|
||||
Reference in New Issue
Block a user