We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e631350 commit 561caaeCopy full SHA for 561caae
tools/fetch-submodules.sh
@@ -16,9 +16,8 @@ done
16
echo ${abs_submodules}
17
18
# Fetch submodules as partial clones if possible. If that fails due to an older version of git,
19
-# do a shallow init with no fetch and then check out the proper commit.
+# do a shallow init and fetch tags.
20
git submodule update --init --filter=blob:none ${abs_submodules} || \
21
- git submodule update --init --no-fetch --depth 1 ${abs_submodules} || \
22
- git submodule foreach $* \
23
- 'git fetch --tags --depth 1 origin $$sha1 && git checkout -q $$sha1' || \
+ git submodule update --init --depth 1 ${abs_submodules} && \
+ git submodule foreach 'git fetch --tags --depth 1' || \
24
echo "ERROR: fetch-submodules.sh FAILED"
0 commit comments