tests/kvm: Use git fetch --depth=1

Otherwise it fetches the full history of the target tag, which is a lot
of data for the Linux kernel.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3141>
This commit is contained in:
Michel Dänzer 2023-07-27 18:32:07 +02:00 committed by Marge Bot
parent 34d0e5b7d6
commit 679457373a

View File

@ -48,7 +48,7 @@ set -x
if [ -d linux ]; then
pushd linux
git fetch $REPO $BRANCH_OR_TAG
git fetch --depth=1 $REPO $BRANCH_OR_TAG
git checkout FETCH_HEAD
else
git clone --depth=1 --branch=$BRANCH_OR_TAG $REPO linux