fix(app): more defensive, handle no git

This commit is contained in:
Adam
2026-01-05 15:11:55 -06:00
parent 19123b6803
commit 2ca0ae7755
7 changed files with 94 additions and 23 deletions

View File

@@ -31,7 +31,7 @@ export namespace Filesystem {
const result = []
while (true) {
const search = join(current, target)
if (await exists(search)) result.push(search)
if (await exists(search).catch(() => false)) result.push(search)
if (stop === current) break
const parent = dirname(current)
if (parent === current) break
@@ -46,7 +46,7 @@ export namespace Filesystem {
while (true) {
for (const target of targets) {
const search = join(current, target)
if (await exists(search)) yield search
if (await exists(search).catch(() => false)) yield search
}
if (stop === current) break
const parent = dirname(current)