From af3ce4a3ac449e430a7e3a28fa1323d7304ff0bc Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 27 Aug 2024 00:37:38 +0800 Subject: improve get.sh --- scripts/get.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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!' -- cgit v1.3.1