From 4cafa1863a0695c480cbbb8d767bbf68ac3f37c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Codo=C3=B1er?= Date: Mon, 15 Jul 2024 16:07:58 +0200 Subject: [PATCH] manage better env variables spread to git child processes --- tools/cli/commands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cli/commands.js b/tools/cli/commands.js index ab2e89df55..95497cf1a5 100644 --- a/tools/cli/commands.js +++ b/tools/cli/commands.js @@ -1053,8 +1053,9 @@ main.registerCommand({ if (err) throw new Error("git is not installed"); const isWindows = process.platform === "win32"; - process.env.GIT_TERMINAL_PROMPT = 0; // Set GIT_TERMINAL_PROMPT=0 to disable prompting + process.env.GIT_TERMINAL_PROMPT = 0; + const gitCommand = isWindows ? `git clone --progress ${url} ${files.convertToOSPath(appPath)}` : `git clone --progress ${url} ${appPath}`;