From 98487f464b7b44eb9281e4f3c0a5177ec5aa1223 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 23 Nov 2018 16:29:44 +0100 Subject: [PATCH] gitlab-ci: If there is not old sha check last 20 commits Signed-off-by: Andreas Schneider --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b8d66c0a..826e617b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -90,7 +90,7 @@ fedora/csbuild: script: - | if [[ -z "$CI_COMMIT_BEFORE_SHA" ]]; then - export CI_COMMIT_BEFORE_SHA=$(git rev-parse HEAD^) + export CI_COMMIT_BEFORE_SHA=$(git rev-parse HEAD~20) fi # Check if the commit exists in this branch