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) } }