浏览代码

Fixes #161 - removes git output colors

main
Eric Amodio 7 年前
父节点
当前提交
a948fd8246
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/git/git.ts

+ 2
- 2
src/git/git.ts 查看文件

@ -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' });

正在加载...
取消
保存