Skip to content

Commit b600bdc

Browse files
committed
Fixes issue with showing diffs of staged files
1 parent 0fa822a commit b600bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git/gitUri.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ export class GitUri extends ((Uri as any) as UriEx) {
372372
const path = GitUri.resolve(fileName, repoPath);
373373
return Uri.parse(
374374
// Change encoded / back to / otherwise uri parsing won't work properly
375-
`${DocumentSchemes.Git}:${encodeURIComponent(path).replace(/%2F/g, slash)}?${encodeURIComponent(
375+
`${DocumentSchemes.Git}:/${encodeURIComponent(path).replace(/%2F/g, slash)}?${encodeURIComponent(
376376
JSON.stringify({
377377
// Ensure we use the fsPath here, otherwise the url won't open properly
378378
path: Uri.file(path).fsPath,

0 commit comments

Comments
 (0)