Print missing Signed-off-by line info

Signed-off-by: Fabio Utzig <utzig@apache.org>
This commit is contained in:
Fabio Utzig 2018-10-11 05:52:37 -07:00 committed by Fabio Utzig
parent 5f81b127e1
commit d8f84bcc39
1 changed files with 6 additions and 1 deletions

View File

@ -46,8 +46,13 @@ for sha in $commits; do
[[ ${found_author} == true && ${found_committer} == true ]] && break
done
if [[ ${found_author} == false ]]; then
echo -e "Missing \"Signed-off-by\" for \"${author}\" in commit ${sha}"
fi
if [[ ${found_committer} == false ]]; then
echo -e "Missing \"Signed-off-by\" for \"${commiter}\" in commit ${sha}"
fi
if [[ ${found_author} == false || ${found_committer} == false ]]; then
echo -e "One or more \"Signed-off-by\" lines missing in commit ${sha}"
exit 1
fi