Skip to content

Commit cc322b6

Browse files
committed
test: patch git init call
1 parent d1161fb commit cc322b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/tap/git-npmignore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function setup (cb) {
152152

153153
var git = escapeArg(gitPath)
154154

155-
exec(git + ' init', {cwd: dep}, init)
155+
exec(git + ' init --initial-branch=main', {cwd: dep}, init)
156156

157157
function init (er, _, stderr) {
158158
if (er) return cb(er)

0 commit comments

Comments
 (0)