ci/vkd3d: fetch only the desired commit

Standardize with the way most repos in CI are cloned.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39670>
This commit is contained in:
Eric Engestrom 2025-08-11 18:41:51 +02:00 committed by Marge Bot
parent 3a923461d0
commit 0b03492957

View file

@ -24,9 +24,12 @@ if [ ! -d "$VKD3D_PROTON_WINE_DIR" ]; then
exit 1 exit 1
fi fi
git clone https://github.com/HansKristian-Work/vkd3d-proton.git --single-branch -b master --no-checkout "$VKD3D_PROTON_SRC_DIR" mkdir -p "$VKD3D_PROTON_SRC_DIR"
pushd "$VKD3D_PROTON_SRC_DIR" pushd "$VKD3D_PROTON_SRC_DIR"
git checkout "$VKD3D_PROTON_COMMIT" git init
git remote add origin https://github.com/HansKristian-Work/vkd3d-proton.git
git fetch --depth 1 origin "$VKD3D_PROTON_COMMIT"
git checkout FETCH_HEAD
git submodule update --init --recursive git submodule update --init --recursive
meson setup \ meson setup \