From d91f1fec5f3b1ae67879ba71bceef21338c0f660 Mon Sep 17 00:00:00 2001
From: Esben Haabendal <esben.haabendal@huawei.com>
Date: Wed, 13 Jul 2022 18:37:59 +0200
Subject: [PATCH] CI: Allow use with shallow clone CI setup

Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com>
---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5ae1632e..7d5fab17 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -76,7 +76,7 @@ stages:
     # The repo tool seems to insist on having a branch checked out or
     # something like that... Without this we get errors like
     #     fatal: couldn't find remote ref refs/heads/master
-    - git checkout -b master
+    - git checkout -b master && git fetch --unshallow
     # Create/maintain a mirror of all manifest repositories in runner
     # persistent storage, and use that as reference when initializing the
     # build repo, effectively reducing the time spent fetching git repos to
-- 
GitLab