Git - handle another error condition when detecting worktrees (#256278)

This commit is contained in:
Ladislau Szomoru
2025-07-16 16:15:33 +00:00
committed by GitHub
parent c0ceb8ca95
commit 0cfca3786c

View File

@@ -2798,7 +2798,7 @@ export class Repository {
return result;
}
catch (err) {
if (/ENOTDIR/.test(err.message)) {
if (/ENOENT/.test(err.message) || /ENOTDIR/.test(err.message)) {
return [];
}