simple-git needs to get their shit together
This commit is contained in:
parent
20f807c5c9
commit
2928c79446
|
@ -4978,6 +4978,7 @@ async function getManifest(extensionPath) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function checkIfRepoIsUpToDate(extensionPath) {
|
async function checkIfRepoIsUpToDate(extensionPath) {
|
||||||
|
// @ts-ignore - simple-git types are incorrect, this is apparently callable but no call signature
|
||||||
const git = simpleGit();
|
const git = simpleGit();
|
||||||
await git.cwd(extensionPath).fetch('origin');
|
await git.cwd(extensionPath).fetch('origin');
|
||||||
const currentBranch = await git.cwd(extensionPath).branch();
|
const currentBranch = await git.cwd(extensionPath).branch();
|
||||||
|
@ -5008,6 +5009,7 @@ async function checkIfRepoIsUpToDate(extensionPath) {
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
app.post('/get_extension', jsonParser, async (request, response) => {
|
app.post('/get_extension', jsonParser, async (request, response) => {
|
||||||
|
// @ts-ignore - simple-git types are incorrect, this is apparently callable but no call signature
|
||||||
const git = simpleGit();
|
const git = simpleGit();
|
||||||
if (!request.body.url) {
|
if (!request.body.url) {
|
||||||
return response.status(400).send('Bad Request: URL is required in the request body.');
|
return response.status(400).send('Bad Request: URL is required in the request body.');
|
||||||
|
@ -5053,6 +5055,7 @@ app.post('/get_extension', jsonParser, async (request, response) => {
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
app.post('/update_extension', jsonParser, async (request, response) => {
|
app.post('/update_extension', jsonParser, async (request, response) => {
|
||||||
|
// @ts-ignore - simple-git types are incorrect, this is apparently callable but no call signature
|
||||||
const git = simpleGit();
|
const git = simpleGit();
|
||||||
if (!request.body.extensionName) {
|
if (!request.body.extensionName) {
|
||||||
return response.status(400).send('Bad Request: extensionName is required in the request body.');
|
return response.status(400).send('Bad Request: extensionName is required in the request body.');
|
||||||
|
@ -5098,6 +5101,7 @@ app.post('/update_extension', jsonParser, async (request, response) => {
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
app.post('/get_extension_version', jsonParser, async (request, response) => {
|
app.post('/get_extension_version', jsonParser, async (request, response) => {
|
||||||
|
// @ts-ignore - simple-git types are incorrect, this is apparently callable but no call signature
|
||||||
const git = simpleGit();
|
const git = simpleGit();
|
||||||
if (!request.body.extensionName) {
|
if (!request.body.extensionName) {
|
||||||
return response.status(400).send('Bad Request: extensionName is required in the request body.');
|
return response.status(400).send('Bad Request: extensionName is required in the request body.');
|
||||||
|
|
Loading…
Reference in New Issue