From 6ec7033bb711648c8c2d93f4f2b15b3b6dfdcaea Mon Sep 17 00:00:00 2001 From: Nihaal Sangha Date: Thu, 3 Aug 2023 14:19:54 +0100 Subject: [PATCH] fix(core): Fix source control name and email being switched (#6839) --- .../environments/sourceControl/sourceControlGit.service.ee.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/environments/sourceControl/sourceControlGit.service.ee.ts b/packages/cli/src/environments/sourceControl/sourceControlGit.service.ee.ts index b1e42fe936..4eebf29f2e 100644 --- a/packages/cli/src/environments/sourceControl/sourceControlGit.service.ee.ts +++ b/packages/cli/src/environments/sourceControl/sourceControlGit.service.ee.ts @@ -191,8 +191,8 @@ export class SourceControlGitService { if (!this.git) { throw new Error('Git is not initialized (setGitUserDetails)'); } - await this.git.addConfig('user.email', name); - await this.git.addConfig('user.name', email); + await this.git.addConfig('user.email', email); + await this.git.addConfig('user.name', name); } async getBranches(): Promise<{ branches: string[]; currentBranch: string }> {