Skip to content

Commit 21a7a28

Browse files
committed
fix: add support for special characters
1 parent 56a9c03 commit 21a7a28

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
@@ -13,7 +13,7 @@ const exec = util.promisify(_exec);
1313
* Run a `git` subcommand and return the result, with stdout and stderr available.
1414
*/
1515
function _execute(cwd: string, subcommand: string, options: string[] = []) {
16-
const command = `git ${subcommand} ${options.join(" ")}`;
16+
const command = `git -c 'core.quotePath=false' ${subcommand} ${options.join(" ")}`;
1717

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

0 commit comments

Comments
 (0)