Commit d8f84bcc authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Print missing Signed-off-by line info

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 5f81b127
Loading
Loading
Loading
Loading
+6 −1
Changes for scripts/check-signed-off-by.sh: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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