Skip to content

Commit 56a91f6

Browse files
committed
fixup! feat: implement autorebase for PRs with multiple commits
1 parent d3aaf0c commit 56a91f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/landing_session.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,12 @@ class LandingSession extends Session {
177177
const assumeYes = this.cli.assumeYes ? '--yes' : '';
178178
const msgAmend = `-x "git node land --amend ${assumeYes}"`;
179179
try {
180-
await runAsync('git',
180+
await forceRunAsync('git',
181181
['rebase', `${upstream}/${branch}`, '-i', '--autosquash', msgAmend],
182182
{
183+
ignoreFailure: false,
183184
spawnArgs: {
185+
shell: true,
184186
env: { ...process.env, GIT_SEQUENCE_EDITOR: ':' }
185187
}
186188
});

0 commit comments

Comments
 (0)