fix(core): Fix source control name and email being switched (#6839)

This commit is contained in:
Nihaal Sangha
2023-08-03 14:19:54 +01:00
committed by GitHub
parent 371bfa0f48
commit 6ec7033bb7

View File

@@ -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 }> {