Skip to content

Commit 12904c6

Browse files
authored
Git - fix View Commit action from the timeline view (microsoft#204410)
1 parent 4a318a5 commit 12904c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/git/src/commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3859,11 +3859,11 @@ export class CommandCenter {
38593859
const changes = await repository.diffBetween(commitParentId, commit.hash);
38603860

38613861
const title = `${item.shortRef} - ${commit.message}`;
3862-
const multiDiffSourceUri = toGitUri(Uri.file(repository.root), item.ref, { scheme: 'git-commit' });
3862+
const multiDiffSourceUri = toGitUri(Uri.file(repository.root), commit.hash, { scheme: 'git-commit' });
38633863

38643864
const resources: { originalUri: Uri | undefined; modifiedUri: Uri | undefined }[] = [];
38653865
for (const change of changes) {
3866-
resources.push(toMultiFileDiffEditorUris(change, item.previousRef, item.ref));
3866+
resources.push(toMultiFileDiffEditorUris(change, commitParentId, commit.hash));
38673867
}
38683868

38693869
return {

0 commit comments

Comments
 (0)