summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-01-16 15:54:47 +1100
committerDamien George <damien@micropython.org>2025-01-17 16:58:54 +1100
commit6db29978ac8954f3686f9eb59dd71b55c3495456 (patch)
tree579591c10e9633e5053d72ac033331c99df12ba6 /py
parent84e0aca0fb3b95a4f6c3a46e1a40894b488ba655 (diff)
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 <damien@micropython.org>
Diffstat (limited to 'py')
-rw-r--r--py/mkrules.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/mkrules.mk b/py/mkrules.mk
index 875ddee85..74978b0d1 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