Skip to content

BWDO-808 fix conflict resolution bug#67

Merged
BenjiMilan merged 1 commit into
developfrom
feature/BWDO-808_bugfix_automatic_conflict_resolution
Jul 14, 2026
Merged

BWDO-808 fix conflict resolution bug#67
BenjiMilan merged 1 commit into
developfrom
feature/BWDO-808_bugfix_automatic_conflict_resolution

Conversation

@BenjiMilan

Copy link
Copy Markdown
Contributor

@BenjiMilan
BenjiMilan requested a review from TB-1993 July 14, 2026 13:10
@BenjiMilan BenjiMilan self-assigned this Jul 14, 2026
Copilot AI review requested due to automatic review settings July 14, 2026 13:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes BWDO-808 by correcting the manifest conflict auto-resolution behavior during finish, ensuring the merged manifest keeps the version from the branch being finished (rather than the target branch) when resolving revision-only conflicts.

Changes:

  • Switch manifest auto-conflict resolution from git checkout --ours <path> to git checkout --theirs <path> in the manifest repo.
  • Add inline documentation explaining why --theirs is the correct choice given git-flow’s merge direction (target branch checked out, finishing branch merged in).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 372 to 379
for path in manifest_repo.index.unmerged_blobs().keys():
manifest_repo.git.checkout("--ours", path)
# Git Flow performs:
# git checkout <target branch>
# git merge <branch being finished>
# At this point HEAD is the target branch ("ours"), so use `--theirs` to keep
# the version from the branch being finished.
manifest_repo.git.checkout("--theirs", path)
manifest_repo.git.commit("-am", "Automatic conflict resolution.")

@TB-1993 TB-1993 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it!

@BenjiMilan
BenjiMilan merged commit b30ccf6 into develop Jul 14, 2026
6 of 7 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 14, 2026
@BenjiMilan
BenjiMilan deleted the feature/BWDO-808_bugfix_automatic_conflict_resolution branch July 14, 2026 13:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants