From 5efa4d56e2b7f2440d263ffb794ab3247d70d529 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 18 Nov 2023 16:12:17 +0000 Subject: [PATCH] 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: --- .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