Browse Source

Fixes git:// uris

main
Eric Amodio 2 years ago
parent
commit
826f6552c2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/git/gitUri.ts

+ 2
- 2
src/git/gitUri.ts View File

@ -7,7 +7,7 @@ import { Logger } from '../logger';
import { GitHubAuthorityMetadata } from '../premium/remotehub'; import { GitHubAuthorityMetadata } from '../premium/remotehub';
import { debug } from '../system/decorators/log'; import { debug } from '../system/decorators/log';
import { memoize } from '../system/decorators/memoize'; 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 { CharCode, truncateLeft, truncateMiddle } from '../system/string';
import { RevisionUriData } from './gitProvider'; import { RevisionUriData } from './gitProvider';
import { GitCommit, GitFile, GitRevision } from './models'; import { GitCommit, GitFile, GitRevision } from './models';
@ -447,7 +447,7 @@ export class GitUri extends (Uri as any as UriEx) {
path: uri.path, path: uri.path,
query: JSON.stringify({ query: JSON.stringify({
// Ensure we use the fsPath here, otherwise the url won't open properly // Ensure we use the fsPath here, otherwise the url won't open properly
path: getBestPath(uri),
path: uri.fsPath,
ref: '~', ref: '~',
}), }),
}); });

Loading…
Cancel
Save