Browse Source

Fixes issue with disabled caching

main
Eric Amodio 7 years ago
parent
commit
c5c1e24c62
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/gitProvider.ts

+ 2
- 0
src/gitProvider.ts View File

@ -106,6 +106,8 @@ export class GitProvider extends Disposable {
} }
public getBlameability(fileName: string): boolean { public getBlameability(fileName: string): boolean {
if (!this.UseGitCaching) return true;
const cacheKey = this.getCacheEntryKey(Git.normalizePath(fileName)); const cacheKey = this.getCacheEntryKey(Git.normalizePath(fileName));
const entry = this._gitCache.get(cacheKey); const entry = this._gitCache.get(cacheKey);
return !(entry && entry.hasErrors); return !(entry && entry.hasErrors);

Loading…
Cancel
Save