summaryrefslogtreecommitdiff
path: root/scripts/get.sh
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-27 00:26:19 +0800
committerruki <[email protected]>2024-08-27 00:26:19 +0800
commita3233bdbf83b261214238b9c3011c396d0a4d858 (patch)
tree7c5f1b55b2f2873339f3f0c9bb881cc7aa044415 /scripts/get.sh
parent559827c1e47bbaf25eb41657e3da7ec9c4316ee2 (diff)
improve get.sh
Diffstat (limited to 'scripts/get.sh')
-rwxr-xr-xscripts/get.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index 4b9c80156..a2efbacf2 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -208,7 +208,7 @@ else
git checkout -qf "$2"
cd - || raise 'chdir failed!'
else
- git clone --depth=1 -b "$branch" "$gitrepo" --recurse-submodules $projectdir || raise "clone failed, check your network or branch name"
+ git clone --filter=tree:0 -b "$branch" "$gitrepo" --recurse-submodules $projectdir || raise "clone failed, check your network or branch name"
fi
fi