浏览代码

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 {

正在加载...
取消
保存