mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-03-10 12:01:42 -04:00
Attempts to fix #58 - work with sub-modules
Also fixes issue with nested repos
This commit is contained in:
@@ -87,7 +87,7 @@ export class GitUri extends Uri {
|
||||
if (commit) return new GitUri(uri, commit);
|
||||
}
|
||||
|
||||
return new GitUri(uri, git && git.repoPath);
|
||||
return new GitUri(uri, (await git.getRepoPathFromFile(uri.fsPath)) || git.repoPath);
|
||||
}
|
||||
|
||||
static fromFileStatus(status: IGitStatusFile, repoPath: string, original?: boolean): GitUri;
|
||||
|
||||
Reference in New Issue
Block a user