[gnutls-devel] GnuTLS | WIP: Fix check_if_signed (!964)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon Apr 1 20:07:06 CEST 2019




Nikos Mavrogiannopoulos started a new discussion on devel/check_if_signed:

> -fi
> -
>  # create list of commits of the current branch
> -commits=$(git rev-list --no-merges $CI_MERGE_REQUEST_TARGET_BRANCH_NAME..$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME)
> +commits=$(git rev-list --no-merges $CI_MERGE_REQUEST_TARGET_BRANCH_NAME..)
> +if [ -z "$commits" ]; then
> +    echo "Couldn't find any commits to check"
> +    exit 1
> +fi
>  
>  # check if author's email matches email in 'Signed-off-by'
>  for hash in $commits; do
>    author=$(git log --format='%ae' ${hash}^\!)
>    signed=$(git log --format='%b' ${hash}^\! | grep -i "Signed-off-by:")
> -  if test $? -ne 0; then
> +  echo "Checking commit $hash from Author $author an Signed-off-by: $signed"

typo: 'an' -> 'and'

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/964#note_156171840
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190401/fca7357a/attachment-0001.html>


More information about the Gnutls-devel mailing list