From a948fd8246dedd708bf0ba148f0f3c39cd7eaa55 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 8 Oct 2017 22:47:17 -0400 Subject: [PATCH] Fixes #161 - removes git output colors --- src/git/git.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/git/git.ts b/src/git/git.ts index 8fb0128..ecc1106 100644 --- a/src/git/git.ts +++ b/src/git/git.ts @@ -58,9 +58,9 @@ async function gitCommand(options: GitCommandOptions, ...args: any[]): Promise { - // Fixes https://github.com/eamodio/vscode-gitlens/issues/73 + // Fixes https://github.com/eamodio/vscode-gitlens/issues/73 & https://github.com/eamodio/vscode-gitlens/issues/161 // See https://stackoverflow.com/questions/4144417/how-to-handle-asian-characters-in-file-names-in-git-on-os-x - args.splice(0, 0, '-c', 'core.quotepath=false'); + args.splice(0, 0, '-c', 'core.quotepath=false', '-c', 'color.ui=false'); const opts = { encoding: 'utf8', ...options }; const s = await spawnPromise(git.path, args, { cwd: options.cwd, encoding: (opts.encoding === 'utf8') ? 'utf8' : 'binary' });