Skip to content

Commit 3cc8685

Browse files
committed
1 parent c630abd commit 3cc8685

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extensions/git/src/git.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ export class Repository {
905905
}
906906

907907
async buffer(object: string): Promise<Buffer> {
908-
const child = this.stream(['show', object]);
908+
const child = this.stream(['show', '--textconv', object]);
909909

910910
if (!child.stdout) {
911911
return Promise.reject<Buffer>('Can\'t open file from git');
@@ -978,7 +978,7 @@ export class Repository {
978978
}
979979

980980
async detectObjectType(object: string): Promise<{ mimetype: string, encoding?: string }> {
981-
const child = await this.stream(['show', object]);
981+
const child = await this.stream(['show', '--textconv', object]);
982982
const buffer = await readBytes(child.stdout!, 4100);
983983

984984
try {

0 commit comments

Comments
 (0)