We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b6f78e commit 19658a3Copy full SHA for 19658a3
src/terminal.ts
@@ -27,5 +27,5 @@ function ensureTerminal(): Terminal {
27
export function runGitCommandInTerminal(command: string, args: string, cwd: string, execute: boolean = false) {
28
const terminal = ensureTerminal();
29
terminal.show(false);
30
- terminal.sendText(`git -C ${cwd} ${command} ${args}`, execute);
+ terminal.sendText(`git -C ${cwd.includes(' ') ? `"${cwd}"` : cwd} ${command} ${args}`, execute);
31
}
0 commit comments