From ae7eaad7bab7f56ffec9ee6595d70c4c64fb65b4 Mon Sep 17 00:00:00 2001 From: Brenden Harrell Date: Sun, 10 Oct 2021 21:52:59 -0500 Subject: [PATCH] break up git commands --- Platform/Client/httpInterface.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Platform/Client/httpInterface.js b/Platform/Client/httpInterface.js index 4ea81d56e..34875038d 100644 --- a/Platform/Client/httpInterface.js +++ b/Platform/Client/httpInterface.js @@ -892,9 +892,10 @@ exports.newHttpInterface = function newHttpInterface() { const git = simpleGit(options) try { await git.checkout(currentBranch) - let postCheckoutCommands = ['pull', `https://github.com/Superalgos/Superalgos.git ${currentBranch}`, 'reset', `--hard https://github.com/Superalgos/Superalgos.git/${currentBranch}`] - let result = await git.raw(postCheckoutCommands); - console.log(result) + let postCheckoutCommands = ['pull', `https://github.com/Superalgos/Superalgos.git ${currentBranch}`] + await git.raw(postCheckoutCommands); + let updateToMainRepo = ['reset', `--hard https://github.com/Superalgos/Superalgos.git/${currentBranch}`] + await git.raw(updateToMainRepo); } catch (err) { console.log('[ERROR] Error changing current branch to ' + currentBranch)