Add flags to disable BUG= and TEST= checks
Commits in some upstream-targeted repositories need to follow upstream
commit message conventions, and thus should not have the BUG= and TEST=
fields. Add new bug_field_check and test_field_check options to support
disabling those from a repo's PRESUBMIT.cfg configuration.
TEST=Set up a PRESUBMIT.cfg with the new options; verify that the hook
passes with no BUG or TEST.
Tested-by: Josh Triplett <firstname.lastname@example.org>
Reviewed-by: Mike Frysinger <email@example.com>
Commit-Queue: Josh Triplett <firstname.lastname@example.org>
2 files changed