Await autoCommit with 'win' parameter in startMonitoringWatcher
This commit is contained in:
2
main.js
2
main.js
@@ -288,7 +288,7 @@ function startMonitoringWatcher(folderPath, win) {
|
|||||||
status.renamed.length > 0
|
status.renamed.length > 0
|
||||||
) {
|
) {
|
||||||
const msg = buildCommitMessageFromStatus(status, 'auto-git: ');
|
const msg = buildCommitMessageFromStatus(status, 'auto-git: ');
|
||||||
await autoCommit(folderPath, msg);
|
await autoCommit(folderPath, msg, win);
|
||||||
win.webContents.send('repo-updated', folderPath);
|
win.webContents.send('repo-updated', folderPath);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user