From 08baa8abb444c9befcde2e4a3b275f2da457a140 Mon Sep 17 00:00:00 2001 From: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com> Date: Sat, 5 Nov 2022 07:15:42 +0100 Subject: [PATCH] Git - Only use `this.dotGit` when resolving HEAD (#165497) Fix #164363 --- extensions/git/src/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/git/src/git.ts b/extensions/git/src/git.ts index 368180965ac..86ff30ec8f9 100644 --- a/extensions/git/src/git.ts +++ b/extensions/git/src/git.ts @@ -2067,7 +2067,7 @@ export class Repository { } async getHEADFS(): Promise { - const raw = await fs.readFile(path.join(this.dotGit.commonPath ?? this.dotGit.path, 'HEAD'), 'utf8'); + const raw = await fs.readFile(path.join(this.dotGit.path, 'HEAD'), 'utf8'); // Branch const branchMatch = raw.match(/^ref: refs\/heads\/(?.*)$/m);