Browse Source

Fixes #2271 quotes terminal commands w/ spaces

main
Eric Amodio 2 years ago
parent
commit
19658a383f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/terminal.ts

+ 1
- 1
src/terminal.ts View File

@ -27,5 +27,5 @@ function ensureTerminal(): Terminal {
export function runGitCommandInTerminal(command: string, args: string, cwd: string, execute: boolean = false) {
const terminal = ensureTerminal();
terminal.show(false);
terminal.sendText(`git -C ${cwd} ${command} ${args}`, execute);
terminal.sendText(`git -C ${cwd.includes(' ') ? `"${cwd}"` : cwd} ${command} ${args}`, execute);
}

Loading…
Cancel
Save