Skip to content

Commit

Permalink
fix: add support for special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin committed Aug 20, 2024
1 parent 56a9c03 commit 21a7a28
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 @@ -13,7 +13,7 @@ const exec = util.promisify(_exec);
* Run a `git` subcommand and return the result, with stdout and stderr available.
*/
function _execute(cwd: string, subcommand: string, options: string[] = []) {
const command = `git ${subcommand} ${options.join(" ")}`;
const command = `git -c 'core.quotePath=false' ${subcommand} ${options.join(" ")}`;

console.debug(`Running command: ${command}, cwd: ${cwd}`);

Expand Down

0 comments on commit 21a7a28

Please sign in to comment.