Skip to content

Commit

Permalink
test: Explicitly use master branch in git init (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
eemelipa authored Nov 13, 2023
1 parent a95a35e commit 0f25834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nx-semantic-release/src/tests/setup-test-repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function setupRemoteRepo() {
fs.mkdirSync(remoteReposDirectory, { recursive: true });
}

await exec(`git init --bare project.git`, {
await exec(`git init --bare project.git -b master`, {
cwd: remoteReposDirectory,
});
}
Expand All @@ -54,7 +54,7 @@ async function initGit() {
await setupRemoteRepo();

await runCommandsInTestProj([
'git init',
'git init -b master',
'git config user.email "[email protected]"',
'git config user.name "Test"',
'git add .',
Expand Down

0 comments on commit 0f25834

Please sign in to comment.