Module: Mesa
Branch: main
Commit: 5efa4d56e2b7f2440d263ffb794ab3247d70d529
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5efa4d56e2b7f2440d263ffb794ab3247d70d529

Author: Eric Engestrom <e...@igalia.com>
Date:   Sat Nov 18 16:12:17 2023 +0000

ci: fix kdl commit fetch

Doing a `clone --depth 1` of the default branch then checking out
a commit that might not be the latest of that branch cannot work.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26270>

---

 .gitlab-ci/container/build-kdl.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci/container/build-kdl.sh 
b/.gitlab-ci/container/build-kdl.sh
index 5f00cfc6c60..e45127be542 100755
--- a/.gitlab-ci/container/build-kdl.sh
+++ b/.gitlab-ci/container/build-kdl.sh
@@ -5,12 +5,12 @@ set -ex
 
 KDL_REVISION="5056f71b100a68b72b285c6fc845a66a2ed25985"
 
-git clone \
-    https://gitlab.freedesktop.org/gfx-ci/ci-kdl.git \
-    --depth 1 \
-    ci-kdl.git
+mkdir ci-kdl.git
 pushd ci-kdl.git
-git checkout ${KDL_REVISION}
+git init
+git remote add origin https://gitlab.freedesktop.org/gfx-ci/ci-kdl.git
+git fetch --depth 1 origin ${KDL_REVISION}
+git checkout FETCH_HEAD
 popd
 
 python3 -m venv ci-kdl.venv

Reply via email to