From 4641c36ce9169448ea891e9510a3de7a2a91b56b Mon Sep 17 00:00:00 2001 From: Elias Papavasileiou Date: Tue, 27 Jun 2023 16:29:27 +0300 Subject: [PATCH] fix: rename main branch to master --- test/integration/__utils__/withGitIntegration.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/__utils__/withGitIntegration.js b/test/integration/__utils__/withGitIntegration.js index 670940fc4..ff487ea14 100644 --- a/test/integration/__utils__/withGitIntegration.js +++ b/test/integration/__utils__/withGitIntegration.js @@ -81,6 +81,9 @@ export const withGitIntegration = // Init repository with initial commit await utils.execGit('init') + // Rename default main branch to master for tests to pass on local environment + await utils.execGit(['branch', '-m', 'main', 'master']) + if (isWindowsActions()) { await utils.execGit(['config', 'core.autocrlf', 'input']) }