Files
ECC/scripts
haelyraandNguyen Thanh Dat de1ef95cbe fix(block-no-verify): port value-taking option arity onto the current scanner
Carry forward the still-missing part of this PR onto main's scanner:
git commit --trailer and the git push value options (-o, --push-option,
--receive-pack, --exec, --repo) now consume the following token, and an
abbreviation that names exactly one value-taking long option consumes it
too. A flag-looking value such as `git push -o --no-verify` is data that
Git sends verbatim while still running pre-push, so refusing it was a
false positive.

--force-with-lease stays out (optional inline-only value), inline =value
forms consume nothing, and prefixes ambiguous among the value options
resolve to none of them. A real-Git sweep over every prefix of every
commit/push long option followed by --no-verify (866 commands, Git
2.50.1) found no command the hook allows while Git skips a refusing hook.

Co-authored-by: Nguyen Thanh Dat <ntdat812.dev@gmail.com>
2026-11-16 21:08:04 -05:00
..