瀏覽代碼

Fixes issues with repo path not matching

Caches failed to clear, etc
main
Eric Amodio 2 年之前
父節點
當前提交
5ddd0f731b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/git/models/repository.ts

+ 2
- 2
src/git/models/repository.ts 查看文件

@ -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…
取消
儲存