test: prefer array spread
This commit is contained in:
parent
244f014a91
commit
e594638a96
@ -26,7 +26,7 @@ import getStream from 'get-stream';
|
|||||||
export async function gitRepo(withRemote, branch = 'master') {
|
export async function gitRepo(withRemote, branch = 'master') {
|
||||||
let cwd = tempy.directory();
|
let cwd = tempy.directory();
|
||||||
|
|
||||||
await execa('git', ['init'].concat(withRemote ? ['--bare'] : []), {cwd});
|
await execa('git', ['init', ...(withRemote ? ['--bare'] : [])], {cwd});
|
||||||
|
|
||||||
const repositoryUrl = fileUrl(cwd);
|
const repositoryUrl = fileUrl(cwd);
|
||||||
if (withRemote) {
|
if (withRemote) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user