[auto]
[change] main.js
This commit is contained in:
6
main.js
6
main.js
@@ -139,7 +139,7 @@ function startMonitoringWatcher(folderPath, win) {
|
||||
status.deleted.length > 0 ||
|
||||
status.renamed.length > 0
|
||||
) {
|
||||
const msg = buildCommitMessageFromStatus(status, '[auto] ');
|
||||
const msg = buildCommitMessageFromStatus(status, 'auto-git: ');
|
||||
const did = await autoCommit(folderPath, msg);
|
||||
if (did) {
|
||||
win.webContents.send('repo-updated', folderPath);
|
||||
@@ -159,12 +159,12 @@ function startMonitoringWatcher(folderPath, win) {
|
||||
status.deleted.length > 0 ||
|
||||
status.renamed.length > 0
|
||||
) {
|
||||
const msg = buildCommitMessageFromStatus(status, '[auto]');
|
||||
const msg = buildCommitMessageFromStatus(status, 'auto-git');
|
||||
await autoCommit(folderPath, msg);
|
||||
win.webContents.send('repo-updated', folderPath);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
monitoringWatchers.set(folderPath, watcher);
|
||||
debug(`[MONITOR] Watcher aktiv für ${folderPath}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user