From 3cc86855010e3049bbc19f366f44d55bf08859fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moreno?= Date: Thu, 11 Jun 2020 11:36:57 +0200 Subject: [PATCH] fixes #24883 --- extensions/git/src/git.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/git/src/git.ts b/extensions/git/src/git.ts index 1d942588d49..b0b7c7b6002 100644 --- a/extensions/git/src/git.ts +++ b/extensions/git/src/git.ts @@ -905,7 +905,7 @@ export class Repository { } async buffer(object: string): Promise { - const child = this.stream(['show', object]); + const child = this.stream(['show', '--textconv', object]); if (!child.stdout) { return Promise.reject('Can\'t open file from git'); @@ -978,7 +978,7 @@ export class Repository { } async detectObjectType(object: string): Promise<{ mimetype: string, encoding?: string }> { - const child = await this.stream(['show', object]); + const child = await this.stream(['show', '--textconv', object]); const buffer = await readBytes(child.stdout!, 4100); try {