From 87b05e5ecd602d5f2f683f5779f885276bab2930 Mon Sep 17 00:00:00 2001 From: Brenden Harrell Date: Fri, 8 Oct 2021 08:50:06 -0500 Subject: [PATCH] add clean git branch commands --- Platform/Client/httpInterface.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Platform/Client/httpInterface.js b/Platform/Client/httpInterface.js index dd933ba67..d63937671 100644 --- a/Platform/Client/httpInterface.js +++ b/Platform/Client/httpInterface.js @@ -892,6 +892,10 @@ exports.newHttpInterface = function newHttpInterface() { const git = simpleGit(options) try { await git.checkout(currentBranch) + let postCheckoutCommands = ['git remote add upstream https://github.com/Superalgos/Superalgos', `git pull upstream ${currentBranch}`] + let result = await git.raw(postCheckoutCommands); + console.log(result) + } catch (err) { console.log('[ERROR] Error changing current branch to ' + currentBranch) console.log(err.stack)