Browse Source

Adds logging for finding a new repository

Removes start logging from isTracked
main
Eric Amodio 6 years ago
parent
commit
638c9f565e
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/gitService.ts

+ 1
- 2
src/gitService.ts View File

@ -1487,6 +1487,7 @@ export class GitService implements Disposable {
folder = { uri: Uri.file(rp), name: parts[parts.length - 1], index: this._repositoryTree.count() }; folder = { uri: Uri.file(rp), name: parts[parts.length - 1], index: this._repositoryTree.count() };
} }
Logger.log(`Repository found in '${rp}'`);
repo = new Repository(folder, rp, false, this.onAnyRepositoryChanged.bind(this), this._suspended); repo = new Repository(folder, rp, false, this.onAnyRepositoryChanged.bind(this), this._suspended);
this._repositoryTree.set(rp, repo); this._repositoryTree.set(rp, repo);
@ -1713,8 +1714,6 @@ export class GitService implements Disposable {
cacheKey += `:${ref}`; cacheKey += `:${ref}`;
} }
Logger.log(`isTracked('${fileName}', '${repoPath}'${ref !== undefined ? `, '${ref}'` : ''})`);
let tracked = this._trackedCache.get(cacheKey); let tracked = this._trackedCache.get(cacheKey);
try { try {
if (tracked !== undefined) { if (tracked !== undefined) {

Loading…
Cancel
Save