From c299f5928783d4f0aa12e5bf38ce4ec6d03e52d9 Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Sun, 20 Jun 2021 10:59:42 +0300 Subject: [PATCH] Adapt unit tests to git 1.8 used for HappyPath tests Signed-off-by: Artem Zatsarynnyi --- generator/tests/init-sources/init-sources.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 });