瀏覽代碼

Fixes issue with detecting worktree repos

As `.git` is a file, not a directory
main
Eric Amodio 2 年之前
父節點
當前提交
d8696e35ef
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. +1
    -3
      src/env/node/git/localGitProvider.ts

+ 1
- 3
src/env/node/git/localGitProvider.ts 查看文件

@ -458,11 +458,9 @@ export class LocalGitProvider implements GitProvider, Disposable {
let f;
for (f of files) {
if (!f.isDirectory()) continue;
if (f.name === '.git') {
repositories.push(resolvePath(root, f.name));
} else if (depth >= 0 && excludes[f.name] !== true) {
} else if (depth >= 0 && f.isDirectory() && excludes[f.name] !== true) {
try {
await this.repositorySearchCore(resolvePath(root, f.name), depth, excludes, repositories);
} catch (ex) {

Loading…
取消
儲存