From 89cebfe37f37c142480dcdf1d2e7ecdbcac19085 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 23 May 2025 22:51:57 +0200 Subject: [PATCH] [auto] change main.js --- main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index 61146eb..e931ae4 100644 --- a/main.js +++ b/main.js @@ -117,7 +117,7 @@ function startMonitoringWatcher(folderPath, win) { awaitWriteFinish: { stabilityThreshold: 300, pollInterval: 100 - } //yo + } }); // TODO: Optionale .gitignore Logik nachrüsten @@ -133,10 +133,10 @@ function startMonitoringWatcher(folderPath, win) { // Initialer Commit, falls beim Start schon ungestagte Änderungen vorliegen (async () => { debug(`[MONITOR] Starte initialen Commit-Check für ${folderPath}`); - const did = await autoCommit( - folderPath, - `[auto] startup ${event} ${path.relative(folderPath, folderPath)}` - ); + const event = 'startup'; + const changedPath = folderPath; + const msg = `[auto] ${event} ${path.relative(folderPath, changedPath)}`; + const did = await autoCommit(folderPath, msg); if (did) { win.webContents.send('repo-updated', folderPath); debug(`[MONITOR] Initialer Auto-Commit für ${folderPath} durchgeführt.`);