Skip to content

Commit a948fd8

Browse files
committed
Fixes #161 - removes git output colors
1 parent 87cdf49 commit a948fd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/git/git.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ async function gitCommand(options: GitCommandOptions, ...args: any[]): Promise<s
5858
}
5959

6060
async function gitCommandCore(options: GitCommandOptions, ...args: any[]): Promise<string> {
61-
// Fixes https://github.com/eamodio/vscode-gitlens/issues/73
61+
// Fixes https://github.com/eamodio/vscode-gitlens/issues/73 & https://github.com/eamodio/vscode-gitlens/issues/161
6262
// See https://stackoverflow.com/questions/4144417/how-to-handle-asian-characters-in-file-names-in-git-on-os-x
63-
args.splice(0, 0, '-c', 'core.quotepath=false');
63+
args.splice(0, 0, '-c', 'core.quotepath=false', '-c', 'color.ui=false');
6464

6565
const opts = { encoding: 'utf8', ...options };
6666
const s = await spawnPromise(git.path, args, { cwd: options.cwd, encoding: (opts.encoding === 'utf8') ? 'utf8' : 'binary' });

0 commit comments

Comments
 (0)