Skip to content

how to use git submodule foreach and its variables #886

@3nids

Description

@3nids

Not strictly an issue, but I couldn't find anything in the doc and my understanding of the API is limited. Sorry if it's a stupid question.

I would like to use repo.git.submodule('foreach', …) and get the variables available such as name, sm_path, displaypath, sha1 and toplevel as defined in the git documentation.

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