summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-26 23:27:49 +0800
committerGitHub <[email protected]>2024-08-26 23:27:49 +0800
commitce3d162f72ae7e2f65a7ad85c0e52e195302a14b (patch)
tree353b9b2824f5a5760db53bbb110280f34f6f4bc4 /scripts
parent5aeee42d72b7c2289a0179821db04c36751fc38e (diff)
parentaf3ce4a3ac449e430a7e3a28fa1323d7304ff0bc (diff)
Merge pull request #5510 from xmake-io/treeless
improve treeless for git.clone
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index 4b9c80156..d5238cd21 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -203,7 +203,7 @@ elif test_eq "$branch" "__run__"; then
else
echo "cloning $gitrepo $branch .."
if test_nz "$2"; then
- git clone --depth=50 -b "$branch" "$gitrepo" --recurse-submodules $projectdir || raise "clone failed, check your network or branch name"
+ git clone --filter=tree:0 --no-checkout -b "$branch" "$gitrepo" --recurse-submodules $projectdir || raise "clone failed, check your network or branch name"
cd $projectdir || raise 'chdir failed!'
git checkout -qf "$2"
cd - || raise 'chdir failed!'