Skip to content

Commit 1af9ac1

Browse files
committed
1 parent af8b6ad commit 1af9ac1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

extensions/git/src/test/smoke.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,12 @@ suite('git smoke test', function () {
4242
suiteSetup(async function () {
4343
fs.writeFileSync(file('app.js'), 'hello', 'utf8');
4444
fs.writeFileSync(file('index.pug'), 'hello', 'utf8');
45-
cp.execSync('git init', { cwd });
45+
cp.execSync('git init -b main', { cwd });
4646
cp.execSync('git config user.name testuser', { cwd });
4747
cp.execSync('git config user.email [email protected]', { cwd });
4848
cp.execSync('git config commit.gpgsign false', { cwd });
4949
cp.execSync('git add .', { cwd });
5050
cp.execSync('git commit -m "initial commit"', { cwd });
51-
cp.execSync('git branch -m main', { cwd });
5251

5352
// make sure git is activated
5453
const ext = extensions.getExtension<GitExtension>('vscode.git');

0 commit comments

Comments
 (0)