1
0

Add check for relocation and existence before commit

This commit is contained in:
2025-05-25 05:22:02 +02:00
parent 2d5abf1feb
commit 171c9fbf10

View File

@@ -954,6 +954,9 @@ app.whenReady().then(() => {
});
ipcMain.handle('commit-current-folder', async (_e, folderObj, message) => {
if (folderObj.needsRelocation || !fs.existsSync(folderObj.path)) {
return {};
}
folder = folderObj.path;
try {
debug(`Commit-Vorgang für ${folder} gestartet…`);