Skip to content

Commit 7e52988

Browse files
authored
Merge pull request #92 from beNative/codex/fix-cloning-bug-in-setup-clone-feature
Fix Windows clone command execution
2 parents de1c4fa + 295c6f4 commit 7e52988

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)