From 2c0539f05fd862a1e107d210d95a4beafee62957 Mon Sep 17 00:00:00 2001 From: gabriel Date: Mon, 6 Jan 2020 21:07:14 +0800 Subject: [PATCH] ci: make sure master branch is available for check_runtime --- scripts/gitlab/check_runtime.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/gitlab/check_runtime.sh b/scripts/gitlab/check_runtime.sh index fc42deb2ecc5..9513f6f008d3 100755 --- a/scripts/gitlab/check_runtime.sh +++ b/scripts/gitlab/check_runtime.sh @@ -12,6 +12,9 @@ set -e # fail on any error # give some context git log --graph --oneline --decorate=short -n 10 +# make sure the master branch is available in shallow clones +git fetch --depth=${GIT_DEPTH:-100} origin master + github_label () { echo