From fac3a78c19a93b6c27bb075cd222cdcb208c4ab5 Mon Sep 17 00:00:00 2001 From: Opportunity Date: Mon, 20 Jan 2020 22:52:42 +0800 Subject: revert shallow-submodules --- scripts/get.sh | 2 +- xmake/actions/update/main.lua | 2 +- 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, -- cgit v1.3.1