浏览代码

Searches versioned files when getting a repo path

main
Eric Amodio 6 年前
父节点
当前提交
78bb6ef803
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      src/gitService.ts

+ 5
- 0
src/gitService.ts 查看文件

@ -1120,6 +1120,11 @@ export class GitService extends Disposable {
const repo = await this.getRepository(filePathOrUri, { ...options, skipCacheUpdate: true });
if (repo !== undefined) return repo.path;
if (typeof filePathOrUri !== 'string') {
const versionedUri = await Container.git.getVersionedUri(filePathOrUri);
if (versionedUri !== undefined) return versionedUri.repoPath;
}
const rp = await this.getRepoPathCore(typeof filePathOrUri === 'string' ? filePathOrUri : filePathOrUri.fsPath, false);
if (rp === undefined) return undefined;

正在加载...
取消
保存