Skip to content

Commit

Permalink
py/mkrules.mk: Move comment about partial clones outside make rule.
Browse files Browse the repository at this point in the history
Otherwise the comment is printed each time the rule is run.

Follow up to fdd606d.

Signed-off-by: Damien George <[email protected]>
  • Loading branch information
dpgeorge committed Jan 17, 2025
1 parent 84e0aca commit 6db2997
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py/mkrules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6db2997

Please sign in to comment.