diff --git a/scripts/ci/codegen/pushGeneratedCode.ts b/scripts/ci/codegen/pushGeneratedCode.ts index b1c7f3bf5..e0b281109 100644 --- a/scripts/ci/codegen/pushGeneratedCode.ts +++ b/scripts/ci/codegen/pushGeneratedCode.ts @@ -1,5 +1,5 @@ /* eslint-disable no-console */ -import { run, GENERATED_MAIN_BRANCH } from '../../common'; +import { run } from '../../common'; import { configureGitHubAuthor } from '../../release/common'; import { getNbGitDiff } from '../utils'; @@ -45,9 +45,7 @@ export async function pushGeneratedCode(): Promise { await run(`yarn workspace scripts cleanGeneratedBranch ${baseBranch}`); console.log(`Creating branch for generated code: '${generatedCodeBranch}'`); - await run( - `git branch ${generatedCodeBranch} origin/${GENERATED_MAIN_BRANCH}` - ); + await run(`git branch ${generatedCodeBranch}`); } await run(`git checkout ${generatedCodeBranch}`);