From c358910b01e8ef9ae10e1682fa8ecb3c14785bb9 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 30 Nov 2020 17:55:45 -0500 Subject: [PATCH] Fixes #110880 - sets useConfigOnly=true on commit --- extensions/git/src/git.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/git/src/git.ts b/extensions/git/src/git.ts index 78ddf4d0ae7..af536fe6c53 100644 --- a/extensions/git/src/git.ts +++ b/extensions/git/src/git.ts @@ -1365,6 +1365,9 @@ export class Repository { args.push('--no-verify'); } + // Stops git from guessing at user/email + args.splice(0, 0, '-c', 'user.useConfigOnly=true'); + try { await this.run(args, !opts.amend || message ? { input: message || '' } : {}); } catch (commitErr) {