From 161e57af504f2a1adfded4fc91ff898341d44abd Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 13 Jan 2021 14:27:05 +0100 Subject: [PATCH] Update httpInterface.js --- Client/httpInterface.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index bf6c934af..1defbaedf 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -556,10 +556,11 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE try { await git.add('./*') await git.commit(commitMessage) - await git.push('origin', branch) + await git.push('origin', currentBranch) } catch(err) { console.log('[ERROR] Error running Contribute.') console.log(err.stack) + throw (err) } }