summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2019-03-27 19:21:14 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2019-03-27 19:22:01 +0100
commit25fa083ab556e0f876d257e5b01956408fb28b90 (patch)
tree286a0e2aaa9f4ce16388141cd7007f529ef35c5c
parent0949794f4087d965698569ffbcf3f94bd7ba217f (diff)
downloadgnutls-tmp-signoff-update.tar.gz
check_if_signed: ensure that git-rev-list command succeedstmp-signoff-update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-rwxr-xr-xdevel/check_if_signed5
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}^\!)