From 039c73f4285355c8480fd79afd9ce438b6c0ff29 Mon Sep 17 00:00:00 2001 From: gabriel klawitter Date: Mon, 6 Jan 2020 22:20:38 +0900 Subject: [PATCH] ci: make sure master branch is available for check_runtime (#720) --- polkadot/scripts/gitlab/check_runtime.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polkadot/scripts/gitlab/check_runtime.sh b/polkadot/scripts/gitlab/check_runtime.sh index fc42deb2ec..9513f6f008 100755 --- a/polkadot/scripts/gitlab/check_runtime.sh +++ b/polkadot/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