Skip to content

Commit 295c6f4

Browse files
committed
Fix Windows clone command execution
1 parent de1c4fa commit 295c6f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

electron/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,14 +2106,14 @@ ipcMain.on('clone-repository', async (event, { repo, executionId }: { repo: Repo
21062106
return;
21072107
}
21082108

2109-
sendLog(`$ ${command} ${args.join(' ')}`, LogLevel.Command);
2109+
const displayCommand = /\s/.test(command) ? `"${command}"` : command;
2110+
sendLog(`$ ${displayCommand} ${args.join(' ')}`, LogLevel.Command);
21102111

21112112
const parentDir = dirname(repo.localPath);
21122113

21132114
fs.mkdir(parentDir, { recursive: true }).then(() => {
21142115
const child = spawn(command, args, {
21152116
cwd: parentDir,
2116-
shell: os.platform() === 'win32',
21172117
});
21182118
registerChildProcess(executionId, child);
21192119

0 commit comments

Comments
 (0)