We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
this.dotGit
1 parent 7acbd9d commit 08baa8aCopy full SHA for 08baa8a
extensions/git/src/git.ts
@@ -2067,7 +2067,7 @@ export class Repository {
2067
}
2068
2069
async getHEADFS(): Promise<Ref> {
2070
- 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');
2071
2072
// Branch
2073
const branchMatch = raw.match(/^ref: refs\/heads\/(?<name>.*)$/m);
0 commit comments