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>
(cherry picked from commit 5efa4d56e2
)
This commit is contained in:

committed by
Eric Engestrom

parent
109f64de6c
commit
b3ece9b09f
@@ -5,12 +5,12 @@ set -ex
|
|||||||
|
|
||||||
KDL_REVISION="5056f71b100a68b72b285c6fc845a66a2ed25985"
|
KDL_REVISION="5056f71b100a68b72b285c6fc845a66a2ed25985"
|
||||||
|
|
||||||
git clone \
|
mkdir ci-kdl.git
|
||||||
https://gitlab.freedesktop.org/gfx-ci/ci-kdl.git \
|
|
||||||
--depth 1 \
|
|
||||||
ci-kdl.git
|
|
||||||
pushd 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
|
popd
|
||||||
|
|
||||||
python3 -m venv ci-kdl.venv
|
python3 -m venv ci-kdl.venv
|
||||||
|
@@ -10134,7 +10134,7 @@
|
|||||||
"description": "ci: fix kdl commit fetch",
|
"description": "ci: fix kdl commit fetch",
|
||||||
"nominated": false,
|
"nominated": false,
|
||||||
"nomination_type": 3,
|
"nomination_type": 3,
|
||||||
"resolution": 4,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": null,
|
"because_sha": null,
|
||||||
"notes": null
|
"notes": null
|
||||||
|
Reference in New Issue
Block a user