File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,11 @@ submodules:
252
252
$(ECHO ) " Updating submodules: $( GIT_SUBMODULES) "
253
253
ifneq ($(GIT_SUBMODULES ) ,)
254
254
$(Q)cd $(TOP) && git submodule sync $(GIT_SUBMODULES)
255
- $(Q)cd $(TOP) && git submodule update --init $(GIT_SUBMODULES)
255
+ # If available, do blobless partial clones of submodules to save time and space.
256
+ # A blobless partial clone lazily fetches data as needed, but has all the metadata available (tags, etc.).
257
+ # Fallback to standard submodule update if blobless isn't available (earlier than 2.36.0)
258
+ $(Q)cd $(TOP) && git submodule update --init $(GIT_SUBMODULES) --filter=blob:none || \
259
+ git submodule update --init $(GIT_SUBMODULES)
256
260
endif
257
261
.PHONY : submodules
258
262
You can’t perform that action at this time.
0 commit comments