From 31c4c2869c06eaa81d32c0b36f04aba9dbaa929b Mon Sep 17 00:00:00 2001 From: Philip Wintersteiner Date: Sun, 3 Nov 2024 21:01:15 +0100 Subject: [PATCH] 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 --- src/git/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git/cli.ts b/src/git/cli.ts index f9ff4d2..cbf2a1b 100644 --- a/src/git/cli.ts +++ b/src/git/cli.ts @@ -11,7 +11,7 @@ const exec = util.promisify(_exec); // Ensure Git will show special characters literally without quoting the string // and escaping characters. -const QUOTE_PATH = "-c 'core.quotePath=false'"; +const QUOTE_PATH = '-c "core.quotePath=false"'; const DIFF_INDEX_CMD = "diff-index"; const DIFF_INDEX_OPTIONS = [