diff --git a/test/tap/git-npmignore.js b/test/tap/git-npmignore.js index 2ab7db7304f0f..c01f7aa50acc1 100644 --- a/test/tap/git-npmignore.js +++ b/test/tap/git-npmignore.js @@ -152,7 +152,7 @@ function setup (cb) { var git = escapeArg(gitPath) - exec(git + ' init', {cwd: dep}, init) + exec(git + ' init --initial-branch=main', {cwd: dep}, init) function init (er, _, stderr) { if (er) return cb(er)