瀏覽代碼

Fixes #2032 branches with `<` chars causes errors

main
mcy 2 年之前
committed by Eric Amodio
父節點
當前提交
e0f46cdfa7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/git/models/repository.ts

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

@ -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…
取消
儲存