From 20604ecc50958b3ab0f471ed62c267e812b3d7a5 Mon Sep 17 00:00:00 2001 From: gabriel klawitter Date: Fri, 27 Dec 2019 17:07:48 +0900 Subject: [PATCH] ci: fetch master branch for runtime diff (#708) --- 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 fdba7941bd..2f3c9e8fe7 100755 --- a/polkadot/scripts/gitlab/check_runtime.sh +++ b/polkadot/scripts/gitlab/check_runtime.sh @@ -29,6 +29,9 @@ github_label () { +# make sure the master branch is available in shallow clones +git fetch --depth=${GIT_DEPTH:-100} origin master + # check if the wasm sources changed if ! git diff --name-only origin/master...${CI_COMMIT_SHA} \