manage better env variables spread to git child processes

This commit is contained in:
Nacho Codoñer
2024-07-15 16:07:58 +02:00
parent e866128231
commit 4cafa1863a

View File

@@ -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}`;