Skip to content

Commit

Permalink
fix: use experimental detect encoding with svn cat (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnstonCode committed Feb 20, 2020
1 parent 954d8f7 commit 217a981
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/svnRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,14 @@ export class Repository {
}
}

const experimental = configuration.get<boolean>(
"experimental.detect_encoding",
false
);
if (experimental) {
encoding = null;
}

const result = await this.exec(args, { encoding });

return result.stdout;
Expand Down

0 comments on commit 217a981

Please sign in to comment.