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)