From a8102f14bec61c88349c20ec2a314a1f3499a48f Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 2 Feb 2023 18:33:34 +0200 Subject: [PATCH] make: use `git clone --filter=blob:none` for vc/ and thirdparty/tcc/ , which minimises the amount of transferred data (especially for doing `v up` after a few weeks/months) --- GNUmakefile | 2 +- make.bat | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 821d0f53ac..6b242cb93b 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -16,7 +16,7 @@ TMPLEGACY := $(LEGACYLIBS)/source TCCOS := unknown TCCARCH := unknown GITCLEANPULL := git clean -xf && git pull --quiet -GITFASTCLONE := git clone --depth 1 --quiet --single-branch +GITFASTCLONE := git clone --filter=blob:none --quiet #### Platform detections and overrides: _SYS := $(shell uname 2>/dev/null || echo Unknown) diff --git a/make.bat b/make.bat index aaa5910554..eb37e96c71 100644 --- a/make.bat +++ b/make.bat @@ -337,14 +337,14 @@ exit /b 0 echo Bootstrapping TCC... echo ^> TCC not found if "!tcc_branch!" == "thirdparty-windows-i386" ( echo ^> Downloading TCC32 from !tcc_url! , branch !tcc_branch! ) else ( echo ^> Downloading TCC64 from !tcc_url! , branch !tcc_branch! ) -git clone --depth 1 --quiet --single-branch --branch !tcc_branch! !tcc_url! "%tcc_dir%" +git clone --filter=blob:none --quiet --branch !tcc_branch! !tcc_url! "%tcc_dir%" git --no-pager -C "%tcc_dir%" log -n3 exit /b 0 :cloning_vc echo Cloning vc... echo ^> Cloning from remote !vc_url! -git clone --depth 1 --quiet "%vc_url%" +git clone --filter=blob:none --quiet "%vc_url%" exit /b 0 :eof