fix(app): more defensive, handle no git

This commit is contained in:
Adam 2026-01-05 15:11:55 -06:00
commit 2ca0ae7755
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75

View file

@ -85,6 +85,7 @@ export namespace FileWatcher {
.cwd(Instance.worktree)
.text()
.then((x) => path.resolve(Instance.worktree, x.trim()))
.catch(() => undefined)
if (vcsDir && !cfgIgnores.includes(".git") && !cfgIgnores.includes(vcsDir)) {
const gitDirContents = await readdir(vcsDir).catch(() => [])
const ignoreList = gitDirContents.filter((entry) => entry !== "HEAD")