瀏覽代碼

Fixes #1354 - quotes terminal args if needed

main
Eric Amodio 3 年之前
父節點
當前提交
604bf40b03
共有 2 個檔案被更改,包括 2 行新增1 行删除
  1. +1
    -0
      CHANGELOG.md
  2. +1
    -1
      src/git/models/repository.ts

+ 1
- 0
CHANGELOG.md 查看文件

@ -33,6 +33,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed
- Fixes [#1354](https://github.com/eamodio/vscode-gitlens/issues/1354) - Stuck after merge a branch with a single quote in the name
- Fixes [#863](https://github.com/eamodio/vscode-gitlens/issues/863) - Pulling all repositories doesn't work unless built-in Git knows about the repo (requires VS Code v1.53 or later)
- Fixes [#1332](https://github.com/eamodio/vscode-gitlens/issues/1332) - Stashes created with command line don't show up in the "Stashes" section
- Fixes [#1045](https://github.com/eamodio/vscode-gitlens/issues/1045) - View File History not working - absolute path used — thanks to [PR #1334](https://github.com/eamodio/vscode-gitlens/pull/1334) by egfx-notifications ([@egfx-notifications](https://github.com/egfx-notifications))

+ 1
- 1
src/git/models/repository.ts 查看文件

@ -1084,7 +1084,7 @@ export class Repository implements Disposable {
}
private runTerminalCommand(command: string, ...args: string[]) {
const parsedArgs = args.map(arg => (arg.startsWith('#') ? `"${arg}"` : arg));
const parsedArgs = args.map(arg => (arg.startsWith('#') || arg.includes("'") ? `"${arg}"` : arg));
runGitCommandInTerminal(command, parsedArgs.join(' '), this.path, true);
setTimeout(() => this.fireChange(RepositoryChange.Unknown), 2500);

Loading…
取消
儲存