Skip to content

Commit 0cfca37

Browse files
authored
Git - handle another error condition when detecting worktrees (microsoft#256278)
1 parent c0ceb8c commit 0cfca37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/git/src/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2798,7 +2798,7 @@ export class Repository {
27982798
return result;
27992799
}
28002800
catch (err) {
2801-
if (/ENOTDIR/.test(err.message)) {
2801+
if (/ENOENT/.test(err.message) || /ENOTDIR/.test(err.message)) {
28022802
return [];
28032803
}
28042804

0 commit comments

Comments
 (0)