mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix(core): Fix source control name and email being switched (#6839)
This commit is contained in:
@@ -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 }> {
|
||||||
|
|||||||
Reference in New Issue
Block a user