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} \