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 fdd606dd53.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -248,13 +248,13 @@ clean-prog:
|
|||||||
.PHONY: clean-prog
|
.PHONY: clean-prog
|
||||||
endif
|
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:
|
submodules:
|
||||||
$(ECHO) "Updating submodules: $(GIT_SUBMODULES)"
|
$(ECHO) "Updating submodules: $(GIT_SUBMODULES)"
|
||||||
ifneq ($(GIT_SUBMODULES),)
|
ifneq ($(GIT_SUBMODULES),)
|
||||||
$(Q)cd $(TOP) && git submodule sync $(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) || \
|
$(Q)cd $(TOP) && git submodule update --init --filter=blob:none $(GIT_SUBMODULES) || \
|
||||||
git submodule update --init $(GIT_SUBMODULES)
|
git submodule update --init $(GIT_SUBMODULES)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user