File tree 1 file changed +3
-3
lines changed
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
65
65
fi
66
66
retry sh -c " cd $cache_src_dir && git reset --hard && git pull"
67
67
retry 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"
69
69
70
70
# Cache was updated without errors, mark it as valid
71
71
touch " $cache_valid_file "
@@ -78,9 +78,9 @@ modules="$(git config --file .gitmodules --get-regexp '\.path$' | cut -d' ' -f2)
78
78
for module in $modules ; do
79
79
if [ ! -d " $cache_src_dir /$module " ]; then
80
80
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 "
82
82
continue
83
83
fi
84
84
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 "
86
86
done
You can’t perform that action at this time.
0 commit comments