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