浏览代码

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);

正在加载...
取消
保存