From 00e34a220eff0474810252f6f5550ed49e71ce8f Mon Sep 17 00:00:00 2001 From: Julien Ganichot Date: Fri, 3 Nov 2023 11:55:27 +0100 Subject: [PATCH] fix: test --- src/utilities/git.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utilities/git.spec.ts b/src/utilities/git.spec.ts index 175a8e6e..82728e15 100644 --- a/src/utilities/git.spec.ts +++ b/src/utilities/git.spec.ts @@ -125,10 +125,11 @@ describe('git utility', (): void => { it('pushes to the remote repository from the git repository present in the `cwd` option', async (): Promise => { expect.assertions(1); + await $`git config --global init.defaultBranch master`; + const { cwd: remoteWorkingDirectory, remoteRepositoryUrl } = await initGitRemote(); const cloneWorkingDirectory = await gitShallowClone(remoteRepositoryUrl); - const options = { cwd: cloneWorkingDirectory }; const $$ = $(options); @@ -136,7 +137,7 @@ describe('git utility', (): void => { await $$`git config user.name test@ridedott.com`; await $$`git config commit.gpgsign false`; await gitCommits(['feat: initial commit'], options); - await gitPush('origin', 'main', options); + await gitPush('origin', 'master', options); const { stdout: commitMessage } = await $({ cwd: remoteWorkingDirectory,