Skip to content

Commit 807b1f1

Browse files
committed
Fixes #73 - doesn't work with Chinese filenames
1 parent 6232b80 commit 807b1f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/git/git.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ const defaultStashParams = [`stash`, `list`, `--name-status`, `--full-history`,
2323

2424
async function gitCommand(cwd: string, ...args: any[]) {
2525
try {
26+
// Fixes https://github.com/eamodio/vscode-gitlens/issues/73
27+
// See https://stackoverflow.com/questions/4144417/how-to-handle-asian-characters-in-file-names-in-git-on-os-x
28+
args.splice(0, 0, '-c', 'core.quotepath=false');
29+
2630
const s = await spawnPromise(git.path, args, { cwd: cwd });
2731
Logger.log('git', ...args, ` cwd='${cwd}'`);
2832
return s;

0 commit comments

Comments
 (0)