From ea36d3494242abdc8888edfcc3699f6efb061e95 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 29 Oct 2023 23:46:13 +0200 Subject: [PATCH] Remove unreliable check for git installed It will fail anyway if not installed --- src/extensions.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/extensions.js b/src/extensions.js index fec214244..54a049d0b 100644 --- a/src/extensions.js +++ b/src/extensions.js @@ -62,12 +62,6 @@ function registerEndpoints(app, jsonParser) { * @returns {void} */ app.post('/api/extensions/install', jsonParser, async (request, response) => { - const gitExists = commandExistsSync('git'); - - if (!gitExists) { - return response.status(400).send('Server Error: git is not installed on the system.'); - } - if (!request.body.url) { return response.status(400).send('Bad Request: URL is required in the request body.'); }