diff --git a/generator/tests/init-sources/init-sources.spec.ts b/generator/tests/init-sources/init-sources.spec.ts index 43ad294a6..d38dc1c54 100644 --- a/generator/tests/init-sources/init-sources.spec.ts +++ b/generator/tests/init-sources/init-sources.spec.ts @@ -75,7 +75,8 @@ describe('Test Extensions', () => { }); function initGit(cwd: string) { - cp.execSync('git init -b main', { cwd }); + cp.execSync('git init', { cwd }); + cp.execSync('git checkout -b main', { cwd }); cp.execSync('git config --local user.name "test user"', { cwd }); cp.execSync('git config --local user.email user@example.com', { cwd }); cp.execSync(`git add ${cwd}`, { cwd });