From 826f6552c25f26898377c1af67a30411b9f63fc8 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 30 Jan 2022 03:34:54 -0500 Subject: [PATCH] Fixes git:// uris --- src/git/gitUri.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/git/gitUri.ts b/src/git/gitUri.ts index 9450330..6a89779 100644 --- a/src/git/gitUri.ts +++ b/src/git/gitUri.ts @@ -7,7 +7,7 @@ import { Logger } from '../logger'; import { GitHubAuthorityMetadata } from '../premium/remotehub'; import { debug } from '../system/decorators/log'; import { memoize } from '../system/decorators/memoize'; -import { basename, dirname, getBestPath, isAbsolute, normalizePath, relative } from '../system/path'; +import { basename, dirname, isAbsolute, normalizePath, relative } from '../system/path'; import { CharCode, truncateLeft, truncateMiddle } from '../system/string'; import { RevisionUriData } from './gitProvider'; import { GitCommit, GitFile, GitRevision } from './models'; @@ -447,7 +447,7 @@ export class GitUri extends (Uri as any as UriEx) { path: uri.path, query: JSON.stringify({ // Ensure we use the fsPath here, otherwise the url won't open properly - path: getBestPath(uri), + path: uri.fsPath, ref: '~', }), });