Skip to content

Merges as commits when first_parent=False #99

Closed
@Szpadel

Description

@Szpadel

Hello,

I trying to bring gitlab support to copybara for my company, but in the process I discovered issue with git -> git synchronization.

In default configuration merges are squashed to single commit and in branch based workflows this disrupts whole git history, therefore I tried first_parent=False option in git.origin and it copies both sides of merge as it should, but it isn't able to copy merges, as they are treated as usual commits and they usually doesn't contain any changes.

This disrupts closing github PR when branch is merged on gitlab side and it caused also merge conflicts when on other branches after one of them was merged.

I tried to find a way to fix that in cohybara source code, but it looks like isMerge info is lost many calls up in stack trace before it reaches writer.

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