summaryrefslogtreecommitdiff
path: root/src/ipa/vimc/data
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-08-10 02:43:59 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-08-12 15:44:22 +0300
commit35f045f9783d22a94de7a8ac173db67e41cfd258 (patch)
tree4e44d3901c8fbfaf85f1173dbe8da7a062403489 /src/ipa/vimc/data
parenteeb435bbda98da9f03d56e23722e4ac741d6107c (diff)
utils: checkstyle.py: Skip title and trailers checkers for pre-commit
When running checkstyle.py in a pre-commit hook, there is either no commit message at all (when committing staged changes as a new commit), or the commit message comes from a previous commit being amended. In either case, there's no new commit message yet, and thus nothing to validate for the title and trailers checkers. The trailers checker, in particular, will always flag an error, making all commits fail. To fix that, just skip the two checkers during pre-commit. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Diffstat (limited to 'src/ipa/vimc/data')
0 files changed, 0 insertions, 0 deletions