Browse Source

Fixes #1391 - quotes ()

main
Eric Amodio 4 years ago
parent
commit
a1f44e8c0e
2 changed files with 4 additions and 1 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +3
    -1
      src/git/models/repository.ts

+ 1
- 0
CHANGELOG.md View File

@ -29,6 +29,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed
- Fixes [1391](https://github.com/eamodio/vscode-gitlens/issues/1391) - Branch names are not properly escaped in git commands
- Fixes [1336](https://github.com/eamodio/vscode-gitlens/issues/1336) - Need to allow GitLens to connect to GitHub in every Codespace (requires VS Code v1.54-insiders or later)
- Fixes [1363](https://github.com/eamodio/vscode-gitlens/issues/1363) - Error 'Unable to open compare', when git setting log.showsignature is active
- Fixes [1368](https://github.com/eamodio/vscode-gitlens/issues/1368) - Suppress message "GitLens was unable to find Git"

+ 3
- 1
src/git/models/repository.ts View File

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

||||||
x
 
000:0
Loading…
Cancel
Save