From 535bd01b1afdcbe8e46cd6578fc037c487c05889 Mon Sep 17 00:00:00 2001 From: Jonas Lukasczyk Date: Mon, 9 Dec 2024 13:30:39 +0100 Subject: [PATCH] force set git user.name and user.email on commit --- packages/renderer/src/views/GitCommitView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/renderer/src/views/GitCommitView.vue b/packages/renderer/src/views/GitCommitView.vue index 720acac..0ffdbc1 100644 --- a/packages/renderer/src/views/GitCommitView.vue +++ b/packages/renderer/src/views/GitCommitView.vue @@ -73,12 +73,12 @@ const setGitUser = async(name,email)=>{ // set git user and email response = await window.ipc.invoke('GitService.run', { - args: [`config`,`user.name`,'"'+name+'"'], + args: [`config`,`--replace-all`,`user.name`,'"'+name+'"'], cwd: ArcControlService.props.arc_root }); if(!response[0]) return response; response = await window.ipc.invoke('GitService.run', { - args: [`config`,`user.email`,email], + args: [`config`,`--replace-all`,`user.email`,email], cwd: ArcControlService.props.arc_root }); return response;