Skip to content

Commit 31c4c28

Browse files
committed
Switch to double quotes for escaping
When the extension runs in Windows, for cli commands CMD is used. CMD does not treat single quotes as a special character which causes problems
1 parent ec6a698 commit 31c4c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const exec = util.promisify(_exec);
1111

1212
// Ensure Git will show special characters literally without quoting the string
1313
// and escaping characters.
14-
const QUOTE_PATH = "-c 'core.quotePath=false'";
14+
const QUOTE_PATH = '-c "core.quotePath=false"';
1515

1616
const DIFF_INDEX_CMD = "diff-index";
1717
const DIFF_INDEX_OPTIONS = [

0 commit comments

Comments
 (0)