diff --git a/src/main.test.ts b/src/main.test.ts index b1bf1e5..9e061d7 100644 --- a/src/main.test.ts +++ b/src/main.test.ts @@ -13,7 +13,7 @@ const windows = process.platform === "win32"; const createTestRepo = (repoDefaultConfig?: Partial) => { const repoDirectory = path.join(os.tmpdir(), `test${Math.random().toString(36).substring(2, 15)}`); cp.execSync(`mkdir ${repoDirectory}`); - cp.execSync(`git init ${repoDirectory}`); + cp.execSync(`git init --initial-branch=master ${repoDirectory}`); const run = (command: string) => { return execute(repoDirectory, command);