From 6db29978ac8954f3686f9eb59dd71b55c3495456 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 16 Jan 2025 15:54:47 +1100 Subject: [PATCH] py/mkrules.mk: Move comment about partial clones outside make rule. Otherwise the comment is printed each time the rule is run. Follow up to fdd606dd5395d9c474775945fa4458a27199653b. Signed-off-by: Damien George --- py/mkrules.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py/mkrules.mk b/py/mkrules.mk index 875ddee8523b..74978b0d15bf 100644 --- a/py/mkrules.mk +++ b/py/mkrules.mk @@ -248,13 +248,13 @@ clean-prog: .PHONY: clean-prog endif +# If available, do blobless partial clones of submodules to save time and space. +# A blobless partial clone lazily fetches data as needed, but has all the metadata available (tags, etc.). +# Fallback to standard submodule update if blobless isn't available (earlier than 2.36.0) submodules: $(ECHO) "Updating submodules: $(GIT_SUBMODULES)" ifneq ($(GIT_SUBMODULES),) $(Q)cd $(TOP) && git submodule sync $(GIT_SUBMODULES) - # If available, do blobless partial clones of submodules to save time and space. - # A blobless partial clone lazily fetches data as needed, but has all the metadata available (tags, etc.). - # Fallback to standard submodule update if blobless isn't available (earlier than 2.36.0) $(Q)cd $(TOP) && git submodule update --init --filter=blob:none $(GIT_SUBMODULES) || \ git submodule update --init $(GIT_SUBMODULES) endif