From c392e874d0a6e489e1a4951945eb02821474a74d Mon Sep 17 00:00:00 2001 From: Ryann Graham Date: Fri, 3 Nov 2023 09:51:52 -0700 Subject: [PATCH] check: use blobless partial clones The check operation doesn't need any blobs. The most detail is ever needs about commits is the paths they touched, which only requires commit and tree objects, not the blobs. On large repositories, especially with lots of history, this can dramatically reduce the time to clone and fetch while also dramatically reducing the server-side resources used to serve up those large git repositories. Signed-off-by: Ryann Graham --- assets/check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/check b/assets/check index b59e0ac..447a527 100755 --- a/assets/check +++ b/assets/check @@ -56,7 +56,7 @@ else branchflag="--branch $branch" fi - git clone --bare --single-branch $uri $branchflag $destination $tagflag + git clone --bare --filter=blob:none --single-branch $uri $branchflag $destination $tagflag cd $destination # bare clones don't configure the refspec if [ -n "$branch" ]; then