Skip to content

Commit 50448da

Browse files
authored
Git - Only use this.dotGit when resolving HEAD (microsoft#165497) (microsoft#165794)
Fix microsoft#164363
1 parent d041e3f commit 50448da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/git/src/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2083,7 +2083,7 @@ export class Repository {
20832083
}
20842084

20852085
async getHEADFS(): Promise<Ref> {
2086-
const raw = await fs.readFile(path.join(this.dotGit.commonPath ?? this.dotGit.path, 'HEAD'), 'utf8');
2086+
const raw = await fs.readFile(path.join(this.dotGit.path, 'HEAD'), 'utf8');
20872087

20882088
// Branch
20892089
const branchMatch = raw.match(/^ref: refs\/heads\/(?<name>.*)$/m);

0 commit comments

Comments
 (0)