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