Skip to content

Commit

Permalink
force set git user.name and user.email on commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Lukasczyk committed Dec 9, 2024
1 parent f55367b commit 535bd01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/renderer/src/views/GitCommitView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 535bd01

Please sign in to comment.