Skip to content

Commit

Permalink
fixup! feat: implement autorebase for PRs with multiple commits
Browse files Browse the repository at this point in the history
  • Loading branch information
lundibundi committed Aug 15, 2020
1 parent 12b8410 commit 6705daa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/landing_session.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,12 @@ class LandingSession extends Session {
const assumeYes = this.cli.assumeYes ? '--yes' : '';
const msgAmend = `-x "git node land --amend ${assumeYes}"`;
try {
await runAsync('git',
await forceRunAsync('git',
['rebase', `${upstream}/${branch}`, '-i', '--autosquash', msgAmend],
{
ignoreFailure: false,
spawnArgs: {
shell: true,
env: { ...process.env, GIT_SEQUENCE_EDITOR: ':' }
}
});
Expand Down

0 comments on commit 6705daa

Please sign in to comment.