Skip to content

submodules in repo are not cloned! #165

Open
@7atech

Description

@7atech

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions