Skip to content

Commit

Permalink
Fix tests in CI: always use main as branch name
Browse files Browse the repository at this point in the history
Regardless of init.defaultBranch.
  • Loading branch information
vweevers committed Sep 18, 2022
1 parent 8661c44 commit ddb844b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function run (inputFixture, outputFixture, opts, test) {

let count = 0

execFileSync('git', ['init', '.'], { cwd, stdio })
execFileSync('git', ['init', '-b', 'main', '.'], { cwd, stdio })
fs.writeFileSync(dummyFile, String(count))

if (withPackage) {
Expand Down

0 comments on commit ddb844b

Please sign in to comment.