Skip to content

Improve git clone so it behaves like pip's VCS feature #868

@tiran

Description

@tiran

Fromager's gitutils.git_clone feature does not behave like pip's VCS support. Our helper is less powerful, harder to use, slower, and does not cover all use cases.

The major differences are:

We can make our clone API faster and easier to use:

  • clone with blob filter and --no-checkout
  • git checkout {ref}, which can be any git reference like tag, branch, ref, or commit
  • update submodules recursively with a blob filter

That would reduce the argument list to three arguments (output directory, clone url, ref) and remove the need for git_options in PBI.

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