Skip to content

Commit bb9c311

Browse files
committed
testing deterministic default branch name
1 parent e511cc7 commit bb9c311

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/mocks/directory.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ export function mockIsolatedDirectory({ git }: { git: boolean; }) {
1212
dir = await mkdtemp(join(tmpdir(), "framework-test-"));
1313
process.chdir(dir);
1414
if (git) {
15-
const {stdout, stderr} = (await promisify(exec)("git init"));
16-
console.log({stdout, stderr});
15+
const a = (await promisify(exec)("git config --global init.defaultBranch main"))
16+
console.log(a.stdout, a.stderr);
17+
const b = (await promisify(exec)("git init"));
18+
console.log(b.stdout, b.stderr);
1719
};
1820
});
1921

0 commit comments

Comments
 (0)