Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkpatch: fix patch separator line regex
The separator line always starts with three dashes on a line, optionally followed by either white-space, OR a single space and a filename. The regex would previously match on any three dashes in a row. This means that a patch (such as [1]) would trigger the parser state machine to advance beyond the signed-off checks. Now, bound the check only to use what git-mailinfo would use as a separator. --- <filename> ---<sp> 1: https://mail.openvswitch.org/pipermail/ovs-dev/2018-June/348625.html Fixes: c599d5c ("checkpatch.py: A simple script for finding patch issues") Signed-off-by: Aaron Conole <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information