Skip to content

Commit ff6010b

Browse files
committed
Fixes cross repository sha loading into the Graph
1 parent 084f580 commit ff6010b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/plus/webviews/graph/graphWebview.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import {
3939
} from './protocol';
4040

4141
export interface ShowCommitInGraphCommandArgs {
42+
repoPath: string;
4243
sha: string;
4344
}
4445

@@ -107,7 +108,9 @@ export class GraphWebview extends WebviewBase<State> {
107108
},
108109
this.container.subscription.onDidChange(this.onSubscriptionChanged, this),
109110
registerCommand(Commands.ShowCommitInGraph, (args: ShowCommitInGraphCommandArgs) => {
111+
this.repository = this.container.git.getRepository(args.repoPath);
110112
this._selectedSha = args.sha;
113+
111114
if (this._panel == null) {
112115
void this.show();
113116
} else {

src/webviews/commitDetails/commitDetailsWebviewView.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ export class CommitDetailsWebviewView extends WebviewViewBase<State, Serialized<
185185
if (this._context.commit == null) return;
186186

187187
void executeCommand<ShowCommitInGraphCommandArgs>(Commands.ShowCommitInGraph, {
188+
repoPath: this._context.commit.repoPath,
188189
sha: this._context.commit.sha,
189190
});
190191
break;

0 commit comments

Comments
 (0)