clone submodules shallow by default
which makes it vastly quicker and easier to get going with these very large repos. Change-Id: Ib1bb8e824a6a2228be13ab4379e7f5e660371cea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189002 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
This commit is contained in:
@@ -2,11 +2,14 @@
|
|||||||
path = dictionaries
|
path = dictionaries
|
||||||
url = ../dictionaries
|
url = ../dictionaries
|
||||||
branch = .
|
branch = .
|
||||||
|
shallow = true
|
||||||
[submodule "helpcontent2"]
|
[submodule "helpcontent2"]
|
||||||
path = helpcontent2
|
path = helpcontent2
|
||||||
url = ../help
|
url = ../help
|
||||||
branch = .
|
branch = .
|
||||||
|
shallow = true
|
||||||
[submodule "translations"]
|
[submodule "translations"]
|
||||||
path = translations
|
path = translations
|
||||||
url = ../translations
|
url = ../translations
|
||||||
branch = .
|
branch = .
|
||||||
|
shallow = true
|
||||||
|
|||||||
@@ -296,9 +296,9 @@ do_init_modules()
|
|||||||
done
|
done
|
||||||
for module in $SUBMODULES_CONFIGURED ; do
|
for module in $SUBMODULES_CONFIGURED ; do
|
||||||
if [ -n "$REFERENCED_GIT" ] ; then
|
if [ -n "$REFERENCED_GIT" ] ; then
|
||||||
git submodule update --reference "$REFERENCED_GIT/.git/modules/$module" --progress "$module" || return $?
|
git submodule update --depth 1 --reference "$REFERENCED_GIT/.git/modules/$module" --progress "$module" || return $?
|
||||||
else
|
else
|
||||||
git submodule update --progress "$module" || return $?
|
git submodule update --depth 1 --progress "$module" || return $?
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user