Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/sc/branching/commands/finish.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,12 @@ def _auto_resolve_manifest_conflicts(
rev_only_change_branches.remove(manifest_repo.active_branch.name)

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.")
Comment on lines 372 to 379

try:
Expand Down