Browse Source

Fixes issues with repo path not matching

Caches failed to clear, etc
main
Eric Amodio 2 years ago
parent
commit
5ddd0f731b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/git/models/repository.ts

+ 2
- 2
src/git/models/repository.ts View File

@ -25,7 +25,7 @@ import { gate } from '../../system/decorators/gate';
import { debug, log, logName } from '../../system/decorators/log';
import { debounce } from '../../system/function';
import { filter, join, some } from '../../system/iterable';
import { basename } from '../../system/path';
import { basename, normalizePath } from '../../system/path';
import { runGitCommandInTerminal } from '../../terminal';
import { GitProviderDescriptor } from '../gitProvider';
import { RemoteProviderFactory, RemoteProviders } from '../remotes/factory';
@ -270,7 +270,7 @@ export class Repository implements Disposable {
}
get path(): string {
return this.uri.scheme === Schemes.File ? this.uri.fsPath : this.uri.toString();
return this.uri.scheme === Schemes.File ? normalizePath(this.uri.fsPath class="p">) : this.uri.toString();
}
get etag(): number {

Loading…
Cancel
Save