1
0

Pass 'win' parameter to autoCommit in startMonitoringWatcher

This commit is contained in:
2025-05-26 03:03:31 +02:00
parent 14bd7ccf9c
commit cc2dd069ba

View File

@@ -268,7 +268,7 @@ function startMonitoringWatcher(folderPath, win) {
status.renamed.length > 0
) {
const msg = buildCommitMessageFromStatus(status, 'auto-git: ');
const did = await autoCommit(folderPath, msg);
const did = await autoCommit(folderPath, msg, win);
if (did) {
win.webContents.send('repo-updated', folderPath);
debug(`[MONITOR] Initialer Auto-Commit für ${folderPath} durchgeführt:\n${msg}`);