mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 01:25:43 -05:00
Fixes #73 - doesn't work with Chinese filenames
This commit is contained in:
@@ -23,6 +23,10 @@ const defaultStashParams = [`stash`, `list`, `--name-status`, `--full-history`,
|
||||
|
||||
async function gitCommand(cwd: string, ...args: any[]) {
|
||||
try {
|
||||
// Fixes https://github.com/eamodio/vscode-gitlens/issues/73
|
||||
// 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');
|
||||
|
||||
const s = await spawnPromise(git.path, args, { cwd: cwd });
|
||||
Logger.log('git', ...args, ` cwd='${cwd}'`);
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user