We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c630abd commit 3cc8685Copy full SHA for 3cc8685
1 file changed
extensions/git/src/git.ts
@@ -905,7 +905,7 @@ export class Repository {
905
}
906
907
async buffer(object: string): Promise<Buffer> {
908
- const child = this.stream(['show', object]);
+ const child = this.stream(['show', '--textconv', object]);
909
910
if (!child.stdout) {
911
return Promise.reject<Buffer>('Can\'t open file from git');
@@ -978,7 +978,7 @@ export class Repository {
978
979
980
async detectObjectType(object: string): Promise<{ mimetype: string, encoding?: string }> {
981
- const child = await this.stream(['show', object]);
+ const child = await this.stream(['show', '--textconv', object]);
982
const buffer = await readBytes(child.stdout!, 4100);
983
984
try {
0 commit comments