pre-upload: allow more tags in cherry picked patches
The pre-upload check generates false positives on cherry picked patches
created by 'git cherry-pick -x', as these patches have more tags than
the "Signed-off-by:" in the lat paragraph.
Those cherry picked patches can be identified by the presence of the
string '(cherry-picked from commit' in the last line.
With this change more tags are accepted in the last paragraph of the
cherry picked patches.
TEST=verified that proper error message is generated for different
inputs, and that valid tags do not trigger pre-submit errors any
Signed-off-by: Vadim Bendebury <firstname.lastname@example.org>
Reviewed-by: Guenter Roeck <email@example.com>
Reviewed-by: Dmitry Torokhov <firstname.lastname@example.org>
1 file changed