Skip to content

Commit c392e87

Browse files
committed
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 <r.m.graham@gmail.com>
1 parent 1a71141 commit c392e87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ else
5656
branchflag="--branch $branch"
5757
fi
5858

59-
git clone --bare --single-branch $uri $branchflag $destination $tagflag
59+
git clone --bare --filter=blob:none --single-branch $uri $branchflag $destination $tagflag
6060
cd $destination
6161
# bare clones don't configure the refspec
6262
if [ -n "$branch" ]; then

0 commit comments

Comments
 (0)