auto-git:
[change] main.js
This commit is contained in:
5
main.js
5
main.js
@@ -746,6 +746,11 @@ function exceedsFileLimit(folderPath, igInstance, limit = 20000) {
|
|||||||
function startMonitoringWatcher(folderPath, win) {
|
function startMonitoringWatcher(folderPath, win) {
|
||||||
if (monitoringWatchers.has(folderPath)) return;
|
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.)
|
// 1. Load .gitignore (and add default rules for .git, node_modules, etc.)
|
||||||
const ig = ignore();
|
const ig = ignore();
|
||||||
ig.add(MONITOR_DEFAULT_IGNORES);
|
ig.add(MONITOR_DEFAULT_IGNORES);
|
||||||
|
|||||||
Reference in New Issue
Block a user