Browse Source

Fixes issue with opening a worktree in Focus view

main
Eric Amodio 1 year ago
parent
commit
a0ea99688c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/plus/webviews/focus/focusWebview.ts

+ 2
- 2
src/plus/webviews/focus/focusWebview.ts View File

@ -208,7 +208,7 @@ export class FocusWebviewProvider implements WebviewProvider {
}
const baseUri = Uri.parse(pullRequest.refs!.base.url);
const localInfo = searchedPullRequestWithRemote.repoAndRemote.repo.folder;
const localUri = searchedPullRequestWithRemote.repoAndRemote.repo.uri;
return executeCommand<GHPRPullRequest>(Commands.OpenOrCreateWorktreeForGHPR, {
base: {
repositoryCloneUrl: {
@ -218,7 +218,7 @@ export class FocusWebviewProvider implements WebviewProvider {
},
},
githubRepository: {
rootUri: localInfo!.uri,
rootUri: localUri,
},
head: {
ref: pullRequest.refs!.head.branch,

Loading…
Cancel
Save