From 679457373aa4c34931fc6838449001304e8851d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 27 Jul 2023 18:32:07 +0200 Subject: [PATCH] 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: --- src/tests/kvm/build-linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/kvm/build-linux.sh b/src/tests/kvm/build-linux.sh index 2dd28b405..b241f037b 100755 --- a/src/tests/kvm/build-linux.sh +++ b/src/tests/kvm/build-linux.sh @@ -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