From 7c360836f3c92412c6e26ec67e16714005d78bdb Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 19 Mar 2018 17:37:27 -0400 Subject: [PATCH] Fixes #310 - quote path --- CHANGELOG.md | 1 + src/views/explorerCommands.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4c1b97..f651229 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Fixed - Fixes [#314](https://github.com/eamodio/vscode-gitlens/issues/314) - Toggle line annotation doesn't work properly +- Fixes [#310](https://github.com/eamodio/vscode-gitlens/issues/310) - "via Terminal" commands need quoting around work directory ## [8.1.1] - 2018-03-12 ### Fixed diff --git a/src/views/explorerCommands.ts b/src/views/explorerCommands.ts index ef7863d..f5e9c8e 100644 --- a/src/views/explorerCommands.ts +++ b/src/views/explorerCommands.ts @@ -369,6 +369,6 @@ export class ExplorerCommands extends Disposable { const terminal = this.ensureTerminal(); terminal.show(false); - terminal.sendText(`git -C ${cwd} ${command}`, false); + terminal.sendText(`git -C "${cwd}" ${command}`, false); } } \ No newline at end of file