scripts/kernel-test: do shallow fetch

Instead of fetching the entire history, only fetch the most recent
commit.

Change-Id: I92d90c1451ff6abff2df3b1318b5194880e77f2e
This commit is contained in:
Oliver Smith 2024-04-03 11:08:43 +02:00 committed by osmith
parent 2af9f16715
commit ad154fc565
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ prepare_git_repo() {
fi
fi
git fetch "$KERNEL_REMOTE_NAME"
git fetch --depth=1 "$KERNEL_REMOTE_NAME"
git checkout "$KERNEL_REMOTE_NAME/$KERNEL_BRANCH"
}