Skip to content

Commit

Permalink
Update sparse_clone.sh to support git submodules
Browse files Browse the repository at this point in the history
check issue #165
  • Loading branch information
7atech authored Dec 5, 2024
1 parent df7b9be commit 192e0ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mkdocs_multirepo_plugin/scripts/sparse_clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ fi

git clone --branch "$branch" --depth 1 --filter=blob:none --sparse $url_to_use "$name" || exit 1
cd "$name"
git submodule init
git submodule update
git sparse-checkout set --no-cone ${dirs[*]}
rm -rf .git

0 comments on commit 192e0ef

Please sign in to comment.