Skip to content

Commit

Permalink
test: fix local repository branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
goestav committed Jun 3, 2023
1 parent 80b1737 commit f219aa7
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 -b master --bare project.git`, {
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 f219aa7

Please sign in to comment.