git: always run in english locale

This commit is contained in:
Joao Moreno
2017-02-06 12:39:08 +01:00
parent cd641b5bf6
commit 63a69695f7

View File

@@ -355,7 +355,9 @@ export class Git {
options.stdio = ['ignore', null, null]; // Unless provided, ignore stdin and leave default streams for stdout and stderr
}
options.env = assign({}, process.env, options.env || {});
options.env = assign({}, process.env, options.env || {}, {
LANG: 'en_US.UTF-8'
});
if (options.log !== false) {
this.log(`git ${args.join(' ')}\n`);