Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

submodules in repo are not cloned! #165

Open
7atech opened this issue Dec 5, 2024 · 0 comments
Open

submodules in repo are not cloned! #165

7atech opened this issue Dec 5, 2024 · 0 comments

Comments

@7atech
Copy link

7atech commented Dec 5, 2024

if i import an repo and if the repo has a git submodule , the submodule is not cloned.

the fix is as below

file: sparse_clone.sh

change:

...
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
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant