diff --git a/test/helpers/git-utils.js b/test/helpers/git-utils.js index fedbb6a0..38b464bc 100644 --- a/test/helpers/git-utils.js +++ b/test/helpers/git-utils.js @@ -26,7 +26,7 @@ import getStream from 'get-stream'; export async function gitRepo(withRemote, branch = 'master') { let cwd = tempy.directory(); - await execa('git', ['init'].concat(withRemote ? ['--bare'] : []), {cwd}); + await execa('git', ['init', ...(withRemote ? ['--bare'] : [])], {cwd}); const repositoryUrl = fileUrl(cwd); if (withRemote) {