summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-01-20 22:52:42 +0800
committerOpportunity <[email protected]>2020-01-20 22:52:42 +0800
commitfac3a78c19a93b6c27bb075cd222cdcb208c4ab5 (patch)
treeece4182a8314af5a033e3187c8826392e2da8e39
parenta19f3f194a4d581eb27ea9267b7f6b495345b33c (diff)
revert shallow-submodules
-rwxr-xr-xscripts/get.sh2
-rw-r--r--xmake/actions/update/main.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index fce123a23..5046d9e0f 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -121,7 +121,7 @@ if [ 'x__local__' != "x$branch" ]; then
git checkout -qf "$2"
cd - || my_exit 'Chdir Error'
else
- git clone --depth=1 -b "$branch" "https://github.com/$mirror/xmake.git" --recurse-submodules --shallow-submodules $projectdir || my_exit "$(echo -e 'Clone Fail\nCheck your network or branch name')"
+ git clone --depth=1 -b "$branch" "https://github.com/$mirror/xmake.git" --recurse-submodules $projectdir || my_exit "$(echo -e 'Clone Fail\nCheck your network or branch name')"
fi
else
if [ -d '.git' ]; then
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua
index 738624ad3..037ea7e5d 100644
--- a/xmake/actions/update/main.lua
+++ b/xmake/actions/update/main.lua
@@ -349,7 +349,7 @@ function main()
os.mkdir(sourcedir)
http.download(url, path.join(sourcedir, win_installer_name))
else
- git.clone(url, {depth = 1, recurse_submodules = not script_only, shallow_submodules = true, branch = version, outputdir = sourcedir})
+ git.clone(url, {depth = 1, recurse_submodules = not script_only, branch = version, outputdir = sourcedir})
end
return true
end,