From 474741aeb417b03ee1c5c3ba922b062f89378838 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 1 May 2017 13:19:09 -0400 Subject: [PATCH] Fixes incorrect file selection when showing commit details --- src/commands/showQuickCommitFileDetails.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/showQuickCommitFileDetails.ts b/src/commands/showQuickCommitFileDetails.ts index 931b049..c95a869 100644 --- a/src/commands/showQuickCommitFileDetails.ts +++ b/src/commands/showQuickCommitFileDetails.ts @@ -54,7 +54,7 @@ export class ShowQuickCommitFileDetailsCommand extends ActiveEditorCachedCommand } if (!fileLog) { - commit = await this.git.getLogCommit(commit ? commit.repoPath : gitUri.repoPath, commit ? commit.uri.fsPath : gitUri.fsPath, sha, { previous: true }); + commit = await this.git.getLogCommit(commit ? commit.repoPath : gitUri.repoPath, gitUri.fsPath, sha, { previous: true }); if (!commit) return window.showWarningMessage(`Unable to show commit file details`); } }