From 124679ea79ec2998a897602d3a1dff1110fe1e3a Mon Sep 17 00:00:00 2001 From: Paul Hatcherian <1835615+PaulHatch@users.noreply.github.com> Date: Fri, 23 Dec 2022 12:44:02 -0600 Subject: [PATCH] Always use master as branch name in tests --- src/main.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);