Skip to content

Inject repo's .gitattributes when creating patches for submodules #6095

@adamzip

Description

@adamzip

Currently, when Maestro creates diff patches for a codeflow, it creates separate patches for the repo itself, and any submodules that the repo may contain. When creating the submodule patches, the git operation does not benefit from any attributes defined in the source repo itself - because it is a different git repo.

One consequence of this is that it makes it impossible to use the vmr-ignore and vmr-preserve git attributes for paths that are in submodules.

It should be possible to read the repo's root .gitattributes file, or compute the git attributes at the submodule's path in the source repo, and inject them before creating the submodule patches.

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