Browse Source

Fixes #2032 branches with `<` chars causes errors

main
mcy 2 years ago
committed by Eric Amodio
parent
commit
e0f46cdfa7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/git/models/repository.ts

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

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

Loading…
Cancel
Save