It's all about the answers!

Ask a question

RTC-Git integration with Node.js - how is REMOTE_USER env var set?


john norris (20733844) | asked Apr 28 '16, 5:51 a.m.
edited Apr 28 '16, 7:45 a.m.

RTC 6.0.1. Server is Mint Linux. Client is windows with eclipse 4.2 RTC client.

As part of the node.js code called by the hooks, in ValidatePush.js, is this code

function computeData()
{
        var data = {};
        data.gitUser = thisProcess.env["REMOTE_USER"];

This results in gitUser being undefined which causes an Invalid input error.

REMOTE_USER is set in services/GitBackendService.js but that does not seem to be called. Looking at that code, I think it is supposed to be called by main.js which is the server running in the background. But that is not happening.

Could this be because I am using ssh to push with rather than http which would be going via the node.js server?

Does anyone have any more information on this?

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.