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);