diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2019-03-27 19:21:14 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2019-03-27 19:22:01 +0100 |
commit | 25fa083ab556e0f876d257e5b01956408fb28b90 (patch) | |
tree | 286a0e2aaa9f4ce16388141cd7007f529ef35c5c | |
parent | 0949794f4087d965698569ffbcf3f94bd7ba217f (diff) | |
download | gnutls-25fa083ab556e0f876d257e5b01956408fb28b90.tar.gz |
check_if_signed: ensure that git-rev-list command succeedstmp-signoff-update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-rwxr-xr-x | devel/check_if_signed | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/devel/check_if_signed b/devel/check_if_signed index b8b4fef112..764355210e 100755 --- a/devel/check_if_signed +++ b/devel/check_if_signed @@ -15,6 +15,11 @@ 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) +if test $? -ne 0;then + echo "Could not detect the commits in this MR" + 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}^\!) |