summaryrefslogtreecommitdiff
path: root/packages/core/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'packages/core/src/utils')
-rw-r--r--packages/core/src/utils/editor.test.ts1
-rw-r--r--packages/core/src/utils/editor.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/packages/core/src/utils/editor.test.ts b/packages/core/src/utils/editor.test.ts
index 54e8072f..85b54333 100644
--- a/packages/core/src/utils/editor.test.ts
+++ b/packages/core/src/utils/editor.test.ts
@@ -189,6 +189,7 @@ describe('editor utils', () => {
diffCommand.args,
{
stdio: 'inherit',
+ shell: true,
},
);
expect(mockSpawn.on).toHaveBeenCalledWith(
diff --git a/packages/core/src/utils/editor.ts b/packages/core/src/utils/editor.ts
index e7a87ac1..36533e2c 100644
--- a/packages/core/src/utils/editor.ts
+++ b/packages/core/src/utils/editor.ts
@@ -145,6 +145,7 @@ export async function openDiff(
return new Promise((resolve, reject) => {
const childProcess = spawn(diffCommand.command, diffCommand.args, {
stdio: 'inherit',
+ shell: true,
});
childProcess.on('close', (code) => {