-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a change that will conflict #371
Conversation
/backport |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin conflict
git worktree add -d .worktree/backport-371-to-conflict origin/conflict
cd .worktree/backport-371-to-conflict
git switch --create backport-371-to-conflict
git cherry-pick -x 3457521675d7e3df2d432d600a3375fef09332d0 |
Ok, this just ran korthout/backport-action#417, and this was the expected default result: on conflict the backport should fail. Let's see what happens when we set |
Created backport PR for
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin conflict
git worktree add -d .worktree/backport-371-to-conflict origin/conflict
cd .worktree/backport-371-to-conflict
git switch backport-371-to-conflict
git reset --hard HEAD^
git cherry-pick -x 3457521675d7e3df2d432d600a3375fef09332d0
git push --force |
It works! |
/backport |
Git push to origin failed for conflict with exitcode 1 |
Created backport PR for
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin conflict
git worktree add -d .worktree/backport-371-to-conflict origin/conflict
cd .worktree/backport-371-to-conflict
git switch backport-371-to-conflict
git reset --hard HEAD^
git cherry-pick -x 3457521675d7e3df2d432d600a3375fef09332d0
git push --force-with-lease |
This change will be merged to a random branch:
conflict-merge-target
. When we attempt to backport to the branchconflict
, it's expected to conflict.