File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ if [ ! -d "$cache_src_dir/.git" ]; then
6565fi
6666retry sh -c " cd $cache_src_dir && git reset --hard && git pull"
6767retry sh -c " cd $cache_src_dir && \
68- git submodule deinit -f . && git submodule sync && git submodule update --init"
68+ git submodule deinit -f . && git submodule sync && git submodule update --depth 1 -- init"
6969
7070# Cache was updated without errors, mark it as valid
7171touch " $cache_valid_file "
@@ -78,9 +78,9 @@ modules="$(git config --file .gitmodules --get-regexp '\.path$' | cut -d' ' -f2)
7878for module in $modules ; do
7979 if [ ! -d " $cache_src_dir /$module " ]; then
8080 echo " WARNING: $module not found in pristine repo"
81- retry sh -c " git submodule deinit -f $module && git submodule update --init $module "
81+ retry sh -c " git submodule deinit -f $module && git submodule update --depth 1 -- init $module "
8282 continue
8383 fi
8484 retry sh -c " git submodule deinit -f $module && \
85- git submodule update --init --reference $cache_src_dir /$module $module "
85+ git submodule update --init --depth 1 -- reference $cache_src_dir /$module $module "
8686done
You can’t perform that action at this time.
0 commit comments