Commit 17c5438 1 parent d8dd30b commit 17c5438 Copy full SHA for 17c5438
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export class Svn {
116
116
// Force non interactive environment
117
117
args . push ( "--non-interactive" ) ;
118
118
119
- let encoding = options . encoding || "utf8 " ;
119
+ let encoding = options . encoding || "" ;
120
120
delete options . encoding ;
121
121
122
122
const defaults : cp . SpawnOptions = {
@@ -171,7 +171,7 @@ export class Svn {
171
171
// SVN with '--xml' always return 'UTF-8', and jschardet detects this encoding: 'TIS-620'
172
172
if ( args . includes ( "--xml" ) ) {
173
173
encoding = "utf8" ;
174
- } else {
174
+ } else if ( encoding === "" ) {
175
175
const defaultEncoding = configuration . get < string > ( "default.encoding" ) ;
176
176
if ( defaultEncoding ) {
177
177
if ( ! iconv . encodingExists ( defaultEncoding ) ) {
You can’t perform that action at this time.
0 commit comments