From e866128231ecde23c52eb8aa77a1f0902e890e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Codo=C3=B1er?= Date: Mon, 15 Jul 2024 16:05:23 +0200 Subject: [PATCH] manage better env variables spread to git child processes --- tools/cli/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cli/commands.js b/tools/cli/commands.js index 12b82f99c0..ab2e89df55 100644 --- a/tools/cli/commands.js +++ b/tools/cli/commands.js @@ -35,7 +35,7 @@ const { exec } = require("child_process"); */ const runCommand = async (command) => { return new Promise((resolve, reject) => { - exec(command, (error, stdout, stderr) => { + exec(command, { env: process.env }, (error, stdout) => { if (error) { console.log(red`error: ${ error.message }`); reject(error);