From 89fb1fe67ab24dc93820ca3a1ff1b58c70e6a478 Mon Sep 17 00:00:00 2001 From: Taliesin Sisson Date: Tue, 4 Apr 2023 20:43:42 +0100 Subject: [PATCH] Values seem to be changing cache values locally so they can't change later --- src/create-or-update-branch.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/create-or-update-branch.ts b/src/create-or-update-branch.ts index 92745eb..a25c37b 100644 --- a/src/create-or-update-branch.ts +++ b/src/create-or-update-branch.ts @@ -190,12 +190,13 @@ export async function createOrUpdateBranch( core.info( `Rebasing commits made to ${workingBaseType} '${workingBase}' on to base branch '${base}'` ) + const compareBranches = `${base}..${tempBranch}` // Checkout the actual base await git.fetch([`${base}:${base}`], baseRemote, ['--force']) await git.checkout(base) // Cherrypick commits from the temporary branch starting from the working base const commits = await git.revList( - [`${base}..${tempBranch}`, '.'], + [compareBranches, '.'], ['--reverse'] ) for (const commit of splitLines(commits)) {