From 4e02ee98844aae723e6b629d78d8a73366be7180 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Mon, 3 Jul 2023 22:54:51 +0200 Subject: [PATCH] keep redundant commits when cherry-picking --- scripts/release/pick-patches.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release/pick-patches.ts b/scripts/release/pick-patches.ts index 20a3f2d6a870..fa19a1e347f1 100644 --- a/scripts/release/pick-patches.ts +++ b/scripts/release/pick-patches.ts @@ -118,7 +118,7 @@ export const run = async (_: unknown) => { const prSpinner = ora(`Cherry picking #${pr.number}`).start(); try { - await git.raw(['cherry-pick', '-m', '1', '-x', pr.mergeCommit]); + await git.raw(['cherry-pick', '-m', '1', '--keep-redundant-commits', '-x', pr.mergeCommit]); prSpinner.succeed(`Picked: ${formatPR(pr)}`); } catch (pickError) { prSpinner.fail(`Failed to automatically pick: ${formatPR(pr)}`);