zen-gitsync 1.3.7 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/gitCommit.js +2 -2
package/package.json
CHANGED
package/src/gitCommit.js
CHANGED
|
@@ -346,7 +346,7 @@ class GitCommit {
|
|
|
346
346
|
let {encoding = 'utf-8', maxBuffer = 30 * 1024 * 1024, head = command, log = true} = options
|
|
347
347
|
try {
|
|
348
348
|
let cwd = getCwd()
|
|
349
|
-
const output = execSync(command, {encoding, maxBuffer, cwd})
|
|
349
|
+
const output = execSync(command, {env: { ...process.env, LANG: 'C.UTF-8' },encoding, maxBuffer, cwd})
|
|
350
350
|
if (options.spinner) {
|
|
351
351
|
options.spinner.stop();
|
|
352
352
|
}
|
|
@@ -364,7 +364,7 @@ class GitCommit {
|
|
|
364
364
|
return new Promise((resolve, reject) => {
|
|
365
365
|
let {encoding = 'utf-8', maxBuffer = 30 * 1024 * 1024, head = command, log = true} = options
|
|
366
366
|
let cwd = getCwd()
|
|
367
|
-
exec(command, {encoding, maxBuffer, cwd}, (error, stdout, stderr) => {
|
|
367
|
+
exec(command, {env: { ...process.env, LANG: 'C.UTF-8' },encoding, maxBuffer, cwd}, (error, stdout, stderr) => {
|
|
368
368
|
if (options.spinner) {
|
|
369
369
|
options.spinner.stop();
|
|
370
370
|
}
|