mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(core): Fix source control name and email being switched (#6839)
This commit is contained in:
parent
371bfa0f48
commit
6ec7033bb7
|
@ -191,8 +191,8 @@ export class SourceControlGitService {
|
||||||
if (!this.git) {
|
if (!this.git) {
|
||||||
throw new Error('Git is not initialized (setGitUserDetails)');
|
throw new Error('Git is not initialized (setGitUserDetails)');
|
||||||
}
|
}
|
||||||
await this.git.addConfig('user.email', name);
|
await this.git.addConfig('user.email', email);
|
||||||
await this.git.addConfig('user.name', email);
|
await this.git.addConfig('user.name', name);
|
||||||
}
|
}
|
||||||
|
|
||||||
async getBranches(): Promise<{ branches: string[]; currentBranch: string }> {
|
async getBranches(): Promise<{ branches: string[]; currentBranch: string }> {
|
||||||
|
|
Loading…
Reference in a new issue