Print missing Signed-off-by line info
Signed-off-by: Fabio Utzig <utzig@apache.org>
This commit is contained in:
parent
5f81b127e1
commit
d8f84bcc39
|
@ -46,8 +46,13 @@ for sha in $commits; do
|
||||||
[[ ${found_author} == true && ${found_committer} == true ]] && break
|
[[ ${found_author} == true && ${found_committer} == true ]] && break
|
||||||
done
|
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
|
if [[ ${found_author} == false || ${found_committer} == false ]]; then
|
||||||
echo -e "One or more \"Signed-off-by\" lines missing in commit ${sha}"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue