diff --git a/devtools/tools/release.mts b/devtools/tools/release.mts index b2711cd69ab..67e42b67a5c 100644 --- a/devtools/tools/release.mts +++ b/devtools/tools/release.mts @@ -293,7 +293,7 @@ async function prepareReleasePullRequest(newVersion: string): Promise { console.log(chalk.blue('Creating release commit...')); const releaseBranch = `devtools-release-${newVersion}`; await exec(`git branch -D ${releaseBranch}`).catch(() => {}); - await exec(`git checkout -b ${releaseBranch}`); + await exec(`git checkout -b ${releaseBranch} FETCH_HEAD`); await exec(`git commit -m "${releaseCommitPrefix}${newVersion}" "${manifestPaths.join('" "')}"`); await exec(`git push origin ${releaseBranch} --force-with-lease`); console.log(chalk.green('Release branch pushed to your fork.'));