I am trying to execute a command in Node:
cd \"/www/foo/\" && \"/path/to/git/bin/git.exe\" config --list --global
Basically, I want to
I solved it.
I retrieved the current environment from process.env and extended it with my own properties:
var environment = process.env;
environment.customProp = 'foo';
var config = {
maxBuffer: 10000 * 1024,
env: environment
};
So the problem was I missed the entire environment when I overwrote it.