Skip to content

Commit a23c35c

Browse files
author
--global
committed
set initial branch when initializing repo instead of setting the default branch after repo is already made, which of course does nothing for the current repo
1 parent 4a8e4e7 commit a23c35c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/mocks/directory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function mockIsolatedDirectory({git}: {git: boolean}) {
1313
process.chdir(dir);
1414
if (git) {
1515
await promisify(exec)(
16-
'git init && git config user.email "[email protected]" && git config user.name "Observable User" && git config init.defaultBranch main'
16+
'git init -b main && git config user.email "[email protected]" && git config user.name "Observable User"'
1717
);
1818
}
1919
});

0 commit comments

Comments
 (0)