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.
getCommonRepository
1 parent 935263a commit f047617Copy full SHA for f047617
src/git/models/repository.ts
@@ -625,11 +625,11 @@ export class Repository implements Disposable {
625
@gate()
626
@log({ exit: true })
627
async getCommonRepository(): Promise<Repository | undefined> {
628
- const gitDir = await this.git.config().getGitDir?.();
629
- if (gitDir?.commonUri == null) return this;
+ const uri = await this.getCommonRepositoryUri();
+ if (uri == null) return this;
630
631
// If the repository isn't already opened, then open it as a "closed" repo (won't show up in the UI)
632
- return this.container.git.getOrOpenRepository(gitDir.commonUri, {
+ return this.container.git.getOrOpenRepository(uri, {
633
detectNested: false,
634
force: true,
635
closeOnOpen: true,
0 commit comments