Skip to content

Commit af3ce4a

Browse files
committed
improve get.sh
1 parent 7003c61 commit af3ce4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/get.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ elif test_eq "$branch" "__run__"; then
203203
else
204204
echo "cloning $gitrepo $branch .."
205205
if test_nz "$2"; then
206-
git clone --depth=50 -b "$branch" "$gitrepo" --recurse-submodules $projectdir || raise "clone failed, check your network or branch name"
206+
git clone --filter=tree:0 --no-checkout -b "$branch" "$gitrepo" --recurse-submodules $projectdir || raise "clone failed, check your network or branch name"
207207
cd $projectdir || raise 'chdir failed!'
208208
git checkout -qf "$2"
209209
cd - || raise 'chdir failed!'

0 commit comments

Comments
 (0)