summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-27 00:37:38 +0800
committerruki <[email protected]>2024-08-27 00:37:38 +0800
commitaf3ce4a3ac449e430a7e3a28fa1323d7304ff0bc (patch)
tree353b9b2824f5a5760db53bbb110280f34f6f4bc4 /scripts
parent7003c61415396660311d9d830e4ca3b103551470 (diff)
improve get.sh
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!'