Add check for relocation and existence before commit
This commit is contained in:
3
main.js
3
main.js
@@ -954,6 +954,9 @@ app.whenReady().then(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.handle('commit-current-folder', async (_e, folderObj, message) => {
|
ipcMain.handle('commit-current-folder', async (_e, folderObj, message) => {
|
||||||
|
if (folderObj.needsRelocation || !fs.existsSync(folderObj.path)) {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
folder = folderObj.path;
|
folder = folderObj.path;
|
||||||
try {
|
try {
|
||||||
debug(`Commit-Vorgang für ${folder} gestartet…`);
|
debug(`Commit-Vorgang für ${folder} gestartet…`);
|
||||||
|
|||||||
Reference in New Issue
Block a user