From 3109f02cb76f261da48a4d030503b811681a69b8 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 27 Nov 2025 11:35:21 +0100 Subject: [PATCH] auto-git: [change] main.js --- main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.js b/main.js index 64363b5..1cf7b43 100755 --- a/main.js +++ b/main.js @@ -746,6 +746,11 @@ function exceedsFileLimit(folderPath, igInstance, limit = 20000) { function startMonitoringWatcher(folderPath, win) { if (monitoringWatchers.has(folderPath)) return; + if (!fs.existsSync(path.join(folderPath, '.git'))) { + debug(`[MONITOR] Überspringe Watcher für ${folderPath}: kein Git-Repo`); + return; + } + // 1. Load .gitignore (and add default rules for .git, node_modules, etc.) const ig = ignore(); ig.add(MONITOR_DEFAULT_IGNORES);