소스 검색

Fixes remote name in graph 'Open Branch on Remote'

main
Ramin Tadayon 1 년 전
부모
커밋
fe6b26928a
No known key found for this signature in database GPG 키 ID: 79D60DDE3DFB95F5
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. +8
    -1
      src/plus/webviews/graph/graphWebview.ts

+ 8
- 1
src/plus/webviews/graph/graphWebview.ts 파일 보기

@ -2180,13 +2180,20 @@ export class GraphWebviewProvider implements WebviewProvider {
private openBranchOnRemote(item?: GraphItemContext, clipboard?: boolean) {
if (isGraphItemRefContext(item, 'branch')) {
const { ref } = item.webviewItemValue;
let remote;
if (ref.remote) {
remote = getRemoteNameFromBranchName(ref.name);
} else if (ref.upstream != null) {
remote = getRemoteNameFromBranchName(ref.upstream.name);
}
return executeCommand<OpenOnRemoteCommandArgs>(Commands.OpenOnRemote, {
repoPath: ref.repoPath,
resource: {
type: RemoteResourceType.Branch,
branch: ref.name,
},
remote: ref.upstream?.name,
remote: remote,
clipboard: clipboard,
});
}

불러오는 중...
취소
저장