2495 Cannot use gitlens+ feature on public repo in some folders#2510
2495 Cannot use gitlens+ feature on public repo in some folders#2510
Conversation
src/env/node/git/localGitProvider.ts
Outdated
| } | ||
|
|
||
| async visibility(repoPath: string): Promise<RepositoryVisibility> { | ||
| async visibility(repoPath: string): Promise<[RepositoryVisibility, string | undefined]> { |
There was a problem hiding this comment.
Note on why this needed to be updated (for this and the GitHub provider): we need a hash of the remote id or remote ids that are "responsible" for the visibility of the repo (if public, the id of the remote that made it public, if private, the id of all the remotes, and if local, none).
This hash is returned back along with the visibility so that we can include it in the cache. Then whenever we access from cache, or the repo's remotes get updated, we can check the remotes against the hashed value and bust the cache if it changed (doesn't apply to local repos, in which case we don't need to cache).
5964e85 to
bcfa746
Compare
9f56a5e to
6322242
Compare
|
LGTM, just needs a rebase 🚀 |
6322242 to
00456e1
Compare
|
I'm having the same issue as #2495 can't comment there, public repo treated as a private one; EDIT: |
Fixes: #2495