Skip to content

GIT_SHALLOW still downloads the whole repo #540

@larry-oates

Description

@larry-oates

I am using CPMAddPackage to download a repo at a tag containing a lot less than the main branch. I have specified GIT_SHALLOW, however, this downloads the whole repo before switching to the tag I need.

Is there any way to just download the files specified at the tag? This might be an issue with CMake's Fetch Content but I thought I'd ask here as well just in case anyone has any bright ideas.

Thanks all!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions