1
0

Fix return value when folder needs relocation or does not exist during checkout

This commit is contained in:
2025-05-25 05:20:49 +02:00
parent 4c1f4f347e
commit b84d469960

View File

@@ -877,7 +877,7 @@ app.whenReady().then(() => {
*/
ipcMain.handle('checkout-commit', async (_e, folderObj, hash) => {
if (folderObj.needsRelocation || !fs.existsSync(folderObj.path)) {
return false;
return;
}
const git = simpleGit(folderObj.path);
// clean mode: alle lokalen Veränderungen verwerfen