diff --git a/src/create-or-update-branch.ts b/src/create-or-update-branch.ts index ebdef12..92745eb 100644 --- a/src/create-or-update-branch.ts +++ b/src/create-or-update-branch.ts @@ -195,7 +195,7 @@ export async function createOrUpdateBranch( await git.checkout(base) // Cherrypick commits from the temporary branch starting from the working base const commits = await git.revList( - [`${workingBase}..${tempBranch}`, '.'], + [`${base}..${tempBranch}`, '.'], ['--reverse'] ) for (const commit of splitLines(commits)) {