Skip to content

Allow for git clone --recurse-submodules for GitSource #355

@Downsite

Description

@Downsite

Because of caching, if one tries to clone a repository that makes use of relative paths in .gitmodules, git submodule update will fail. That is because the repository url is changed automatically.

$ git submodule init
Submodule 'dep/mydep' (/home/user/.julia/packages/BinaryBuilderBase/hosj0/deps/downloads/public/mydep.git) registered for path 'dep/mydep'
$ git submodule update
fatal: repository '/home/user/.julia/packages/BinaryBuilderBase/hosj0/deps/downloads/public/mydep.git' does not exist
fatal: clone of '/home/user/.julia/packages/BinaryBuilderBase/hosj0/deps/downloads/public/mydep.git' into submodule path '/workspace/srcdir/myproj/dep/mydep' failed'

An option to allow to add flags to git clone would help here.

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