diff options
| -rwxr-xr-x | scripts/get.sh | 2 | ||||
| -rw-r--r-- | 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, |
