Browse Source

Fixes #161 - removes git output colors

main
Eric Amodio 7 years ago
parent
commit
a948fd8246
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/git/git.ts

+ 2
- 2
src/git/git.ts View File

@ -58,9 +58,9 @@ async function gitCommand(options: GitCommandOptions, ...args: any[]): Promise
}
async function gitCommandCore(options: GitCommandOptions, ...args: any[]): Promise<string> {
// 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' });

Loading…
Cancel
Save