Skip to content

Commit

Permalink
Switch to double quotes for escaping
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Wikiwix committed Nov 3, 2024
1 parent ec6a698 commit 31c4c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 31c4c28

Please sign in to comment.