submodule checkout depth 5
This commit is contained in:
1 parent
86ea6fba65
commit
9c157cb7de
1 file changed
+1
-1
@@ -507,7 +507,7 @@ function git-update-submodules() {
|
||||
echo "Update submodules."
|
||||
SUBMODULES=$(git config --file .gitmodules --get-regexp url | sed -e 's/submodule.//g' -e 's/.url.*//g')
|
||||
for SUBMODULE in $SUBMODULES; do
|
||||
git submodule update --init "$SUBMODULE"
|
||||
git submodule update --init --depth 5 "$SUBMODULE"
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user