From e3ba163714b81a04ac399c23ab5e7744976f5fa8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Silva?=
 <123550+andresilva@users.noreply.github.com>
Date: Fri, 3 Jul 2020 20:07:11 +0100
Subject: [PATCH] ci: fix merge on polkadot companion job (#6574)

---
 substrate/.maintain/gitlab/check_polkadot_companion_build.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/substrate/.maintain/gitlab/check_polkadot_companion_build.sh b/substrate/.maintain/gitlab/check_polkadot_companion_build.sh
index e68ce45b3fb..7a1943e0bd4 100755
--- a/substrate/.maintain/gitlab/check_polkadot_companion_build.sh
+++ b/substrate/.maintain/gitlab/check_polkadot_companion_build.sh
@@ -50,7 +50,9 @@ SUBSTRATE_PATH=$(pwd)
 git merge origin/master
 
 # Clone the current Polkadot master branch into ./polkadot.
-git clone --depth 1 https://github.com/paritytech/polkadot.git
+# NOTE: we need to pull enough commits to be able to find a common
+# ancestor for successfully performing merges below.
+git clone --depth 20 https://github.com/paritytech/polkadot.git
 
 cd polkadot
 
-- 
GitLab